Skip to content

Commit

Permalink
Doc: document emcascript features we use (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo authored Dec 10, 2024
1 parent 425df2e commit 25edc11
Showing 1 changed file with 32 additions and 0 deletions.
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

0 comments on commit 25edc11

Please sign in to comment.