Skip to content

Doc: document emcascript features we use #1763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions EMCASCRIPT.md
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
Loading