mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
de34c7ed29
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>
7 lines
347 B
TypeScript
7 lines
347 B
TypeScript
import * as nodeBuffer from "node:buffer";
|
|
import * as nodeTimers from "node:timers";
|
|
|
|
console.log(`global: ${globalThis === global}`);
|
|
console.log(`Buffer: ${Buffer === nodeBuffer.default}`);
|
|
console.log(`setImmediate: ${setImmediate === nodeTimers.setImmediate}`);
|
|
console.log(`clearImmediate: ${clearImmediate === nodeTimers.clearImmediate}`);
|