Browse files

doc: restrict the ES.Next features usage in tests

PR-URL: #11452
Refs: #11290
Reviewed-By: Joyee Cheung <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: James M Snell <>
  • Loading branch information...
DavidCai1993 authored and joyeecheung committed Feb 19, 2017
1 parent 84ee957 commit 88035bc60d49b4e575f73255d534d01589a209d5
Showing with 6 additions and 2 deletions.
  1. +6 −2 doc/guides/
@@ -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]
(, you can check [](
for all available features in each release.
For example:
* `let` and `const` over `var`
* Template literals over string concatenation

0 comments on commit 88035bc

Please sign in to comment.