1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

feat(cli): expose node global everywhere

This commit is contained in:
Marvin Hagemeister 2024-09-23 10:39:51 +02:00
parent 37cedefb4d
commit 2a8db23fd8
4 changed files with 11 additions and 0 deletions

View file

@ -136,6 +136,7 @@ const windowOrWorkerGlobalScope = {
Crypto: core.propNonEnumerable(crypto.Crypto),
SubtleCrypto: core.propNonEnumerable(crypto.SubtleCrypto),
fetch: core.propWritable(fetch.fetch),
global: core.propWritable(globalThis),
EventSource: core.propWritable(eventSource.EventSource),
performance: core.propWritable(performance.performance),
process: core.propWritable(process),

View file

@ -0,0 +1,9 @@
{
"tests": {
"has_node_global": {
"args": "run has_node_global.js",
"exitCode": 0,
"output": "has_node_global.out"
}
}
}

View file

@ -0,0 +1 @@
globalThis === globalThis.global;