Skip to content

Commit 02e2e7f

Browse files
fhembergerrvagg
authored andcommitted
docs/es6: Changed "ES6" to "ECMAScript 2015 (ES6)"
And updated some formatting of the content.
1 parent 030e2d5 commit 02e2e7f

File tree

1 file changed

+9
-33
lines changed

1 file changed

+9
-33
lines changed

locale/en/docs/es6.md

+9-33
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,55 @@
11
---
2-
title: ES6
2+
title: ECMAScript 2015 (ES6)
33
layout: docs.hbs
44
---
5-
# ES6 in Node.js
5+
# ECMAScript 2015 (ES6) in Node.js
66

77
Node.js is built against modern versions of [V8](https://developers.google.com/v8/). By keeping up-to-date with the latest releases of this engine, we ensure new features from the [JavaScript ECMA-262 specification](http://www.ecma-international.org/publications/standards/Ecma-262.htm) are brought to Node.js developers in a timely manner, as well as continued performance and stability improvements.
88

9-
All ES6 features are split into three groups for **shipping**, **staged**, and **in progress** features:
9+
All ECMAScript 2015 (ES6) features are split into three groups for **shipping**, **staged**, and **in progress** features:
1010

1111
* All **shipping** features, which V8 considers stable, are turned **on by default on Node.js** and do **NOT** require any kind of runtime flag.
1212
* **Staged** features, which are almost-completed features that are not considered stable by the V8 team, require a runtime flag: `--es_staging` (or its synonym, `--harmony`).
1313
* **In progress** features can be activated individually by their respective harmony flag (e.g. `--harmony_destructuring`), although this is highly discouraged unless for testing purposes.
1414

15-
## Which ES6 features ship with Node.js by default (no runtime flag required)?
16-
15+
## Which features ship with Node.js by default (no runtime flag required)?
1716

1817
* Block scoping
19-
2018
* [let](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let) (strict mode only)
21-
2219
* [const](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)
23-
24-
* `function`-in-blocks (strict mode only)
25-
26-
>As of v8 3.31.74.1, block-scoped declarations are [intentionally implemented with a non-compliant limitation to strict mode code](https://groups.google.com/forum/#!topic/v8-users/3UXNCkAU8Es). Developers should be aware that this will change as v8 continues towards ES6 specification compliance.
27-
20+
* `function`-in-blocks (strict mode only [[1]](#ref-1)<span id="backref-1"></span>)
2821
* [Classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) (strict mode only)
29-
3022
* Collections
31-
3223
* [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)
33-
3424
* [WeakMap](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap)
35-
3625
* [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)
37-
3826
* [WeakSet](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet)
39-
4027
* [Typed arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays)
41-
4228
* [Generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)
43-
4429
* [Binary and Octal literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Numeric_literals)
45-
4630
* [Object literal extensions](https://github.com/lukehoban/es6features#enhanced-object-literals) (shorthand properties and methods)
47-
4831
* [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
49-
5032
* [New String methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object)
51-
5233
* [Symbols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)
53-
5434
* [Template strings](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings)
55-
5635
* [Arrow Functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)
57-
5836
* [new.target](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target)
59-
6037
* [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
61-
6238
* [Spread operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator)
6339

6440
You can view a more detailed list, including a comparison with other engines, on the [compat-table](https://kangax.github.io/compat-table/es6/) project page.
6541

66-
## Which ES6 features are behind the --es_staging flag?
42+
<small id="ref-1">[[1](#backref-1)]: As of v8 3.31.74.1, block-scoped declarations are [intentionally implemented with a non-compliant limitation to strict mode code](https://groups.google.com/forum/#!topic/v8-users/3UXNCkAU8Es). Developers should be aware that this will change as v8 continues towards ES6 specification compliance.</small>
6743

68-
* [`Symbol.toStringTag`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) (user-definable results for `Object.prototype.toString`, behind flag `--harmony_tostring`)
44+
## Which features are behind the --es_staging flag?
6945

46+
* [`Symbol.toStringTag`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) (user-definable results for `Object.prototype.toString`, behind flag `--harmony_tostring`)
7047
* [`Array.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) (determine whether
7148
an array includes a certain element, behind flag `--harmony_array_includes`)
72-
7349
* [Rest Parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) (represent an indefinite number
7450
of arguments as an array, behind flag `--harmony_rest_parameters`)
7551

76-
## Which ES6 features are in progress?
52+
## Which features are in progress?
7753

7854
New features are constantly being added to the V8 engine. Generally speaking, expect them to land on a future Node.js release, although timing is unknown.
7955

0 commit comments

Comments
 (0)