Skip to content

Commit 09e9842

Browse files
authored
Doc: Refine ECMASCRIPT.md (#1780)
Signed-off-by: Sora Morimoto <sora@morimoto.io>
1 parent 3478018 commit 09e9842

File tree

1 file changed

+46
-19
lines changed

1 file changed

+46
-19
lines changed

ECMASCRIPT.md

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,59 @@
33
The goal of the document is to list features we rely on for the runtime and the generated code.
44
Features 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)

0 commit comments

Comments
 (0)