File tree Expand file tree Collapse file tree 1 file changed +46
-19
lines changed Expand file tree Collapse file tree 1 file changed +46
-19
lines changed Original file line number Diff line number Diff line change 33The goal of the document is to list features we rely on for the runtime and the generated code.
44Features are grouped by ECMAScript version.
55
6- ## ECMAScript 2015 - ES6
7- ### rest parameters
8- - added in Nodejs 6
9- ### spread in function call
10- - added in Nodejs 5
6+ ## ECMAScript 2015
7+
8+ ### Rest parameters
9+
10+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters#browser_compatibility )
11+
12+ ### Spread syntax (in function call)
13+
14+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#browser_compatibility )
15+
1116### Object.assign
12- - added In Nodejs 4
13- ### ArrowFunction
14- - for wasm_of_ocaml
17+
18+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#browser_compatibility )
19+
20+ ### Arrow function expressions
21+
22+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#browser_compatibility )
23+ - For Wasm_of_ocaml
24+
1525### TypedArray
16- - to implement bigarray
26+
27+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#browser_compatibility )
28+ - To implement bigarray
1729
1830## ECMAScript 2016
19- ### Async/Await
20- - for wasm_of_ocaml
31+
32+ ### async function
33+
34+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function#browser_compatibility )
35+ - For Wasm_of_ocaml
36+
37+ ### await
38+
39+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await#browser_compatibility )
40+ - For Wasm_of_ocaml
2141
2242## ECMAScript 2020
43+
2344### globalThis
24- - added in Nodejs 12
25- - polyfill-ed in the repo
45+
46+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility )
47+ - Polyfilled in the repository
2648
2749## ECMAScript 2021
28- ### WeakRef to implement weak and ephemeron
29- - added in Nodejs 14.6
30- - optional
3150
32- ## Node
33- ### Namespaced require ` require("node:fs") `
34- - added in Nodejs 16
51+ ### WeakRef
52+
53+ - [ Compatibility] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef#browser_compatibility )
54+ - To implement weak and ephemeron
55+ - Optional
56+
57+ ## Node.js
58+
59+ ### Built-in modules with ` node: ` prefix
60+
61+ - [ Compatibility] ( https://nodejs.org/docs/latest/api/modules.html#built-in-modules )
You can’t perform that action at this time.
0 commit comments