Skip to content

Commit 87e5781

Browse files
fix: add docs for --unstable-node-globals (#1373)
1 parent f564d39 commit 87e5781

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

runtime/reference/cli/unstable_flags.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,20 @@ in a project with a _package.json_ and the closest _package.json_ has
126126

127127
Requires Deno >= 2.1.2
128128

129+
## `--unstable-node-globals`
130+
131+
This flags injects Node specific globals into the global scope. The injected
132+
globals are:
133+
134+
- `Buffer`
135+
- `global`
136+
- `setImmediate`
137+
- `clearImmediate`
138+
139+
Note, that `process` is already available as a global startin with Deno 2.0.
140+
141+
Requires Deno >= 2.1.0
142+
129143
## `--unstable-sloppy-imports`
130144

131145
**Environment variable:** `DENO_UNSTABLE_SLOPPY_IMPORTS`

0 commit comments

Comments
 (0)