feat(cli): add --unstable-node-globals flag (#26617)

This PR adds a new `--unstable-node-globals` flag to expose Node globals
by default.

Fixes https://github.com/denoland/deno/issues/26611

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Marvin Hagemeister 2024-11-14 14:11:29 +01:00 committed by GitHub
parent 4e899d48cf
commit de34c7ed29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 75 additions and 21 deletions

View file

@ -144,12 +144,13 @@ const unstableIds = {
http: 5,
kv: 6,
net: 7,
otel: 8,
process: 9,
temporal: 10,
unsafeProto: 11,
webgpu: 12,
workerOptions: 13,
nodeGlobals: 8,
otel: 9,
process: 10,
temporal: 11,
unsafeProto: 12,
webgpu: 13,
workerOptions: 14,
};
const denoNsUnstableById = { __proto__: null };