diff options
author | Marvin Hagemeister <marvin@deno.com> | 2024-11-14 14:11:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-14 13:11:29 +0000 |
commit | de34c7ed29bcce8b46a65f5effe45090b8493ba5 (patch) | |
tree | 5dc23f03d87522682342f0f82215566e8e580298 /tests/specs/lint | |
parent | 4e899d48cffa95617266dd8f9aef54603a87ad82 (diff) |
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>
Diffstat (limited to 'tests/specs/lint')
-rw-r--r-- | tests/specs/lint/node_globals_no_duplicate_imports/main.out | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/specs/lint/node_globals_no_duplicate_imports/main.out b/tests/specs/lint/node_globals_no_duplicate_imports/main.out index 058b80795..ce5523f99 100644 --- a/tests/specs/lint/node_globals_no_duplicate_imports/main.out +++ b/tests/specs/lint/node_globals_no_duplicate_imports/main.out @@ -4,4 +4,5 @@ const _foo = setImmediate; at [WILDCARD]main.ts:3:14 info: setImmediate is not available in the global scope in Deno. - hint: Import it explicitly with import { setImmediate } from "node:timers";. + hint: Import it explicitly with import { setImmediate } from "node:timers";, + or run again with --unstable-node-globals flag to add this global. |