-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doc: document emcascript features we use (#1763)
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# ECMAScript and Node requirements | ||
|
||
The goal of the document is to list features we rely on for the runtime and the generated code. | ||
Features are grouped by ECMAScript version. | ||
|
||
## ECMAScript 2015 - ES6 | ||
### rest parameters | ||
- added in Nodejs 6 | ||
### Object.assign | ||
- added In Nodejs 4 | ||
### ArrowFunction | ||
- for wasm_of_ocaml | ||
### TypedArray | ||
- to implement bigarray | ||
|
||
## ECMAScript 2016 | ||
### Async/Await | ||
- for wasm_of_ocaml | ||
|
||
## ECMAScript 2020 | ||
### globalThis | ||
- added in Nodejs 12 | ||
- polyfill-ed in the repo | ||
|
||
## ECMAScript 2021 | ||
### WeakRef to implement weak and ephemeron | ||
- added in Nodejs 14.6 | ||
- optional | ||
|
||
## Node | ||
### Namespaced require `require("node:fs")` | ||
- added in Nodejs 16 |