diff options
author | DavidCai <davidcai1993@yahoo.com> | 2017-02-19 16:34:57 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-02-21 11:33:52 +0800 |
commit | 88035bc60d49b4e575f73255d534d01589a209d5 (patch) | |
tree | 102e417089faeb6f5c0c9c6f25fb75aad739d635 /doc/guides | |
parent | 84ee95780073e06459fd5fcb0682517e7be6e263 (diff) | |
download | node-new-88035bc60d49b4e575f73255d534d01589a209d5.tar.gz |
doc: restrict the ES.Next features usage in tests
PR-URL: https://github.com/nodejs/node/pull/11452
Refs: https://github.com/nodejs/node/pull/11290
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/guides')
-rw-r--r-- | doc/guides/writing-tests.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/guides/writing-tests.md b/doc/guides/writing-tests.md index 36cf04fc54..4f226bfdb2 100644 --- a/doc/guides/writing-tests.md +++ b/doc/guides/writing-tests.md @@ -231,8 +231,12 @@ assert.throws( For performance considerations, we only use a selected subset of ES.Next features in JavaScript code in the `lib` directory. However, when writing -tests, it is encouraged to use ES.Next features that have already landed -in the ECMAScript specification. For example: +tests, for the ease of backporting, it is encouraged to use those ES.Next +features that can be used directly without a flag in [all maintained branches] +(https://github.com/nodejs/lts), you can check [node.green](http://node.green) +for all available features in each release. + +For example: * `let` and `const` over `var` * Template literals over string concatenation |