diff options
author | Luca Casonato <hello@lcas.dev> | 2024-09-04 11:04:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 11:04:06 +0200 |
commit | b333dccee82f4328a65d0c3c45c7aa5c19255220 (patch) | |
tree | 6799aff43eb6c8f2e1186c18a2b973b056f967a4 /runtime/js | |
parent | 4c3b17b54703b455d8ae4b51354d18838c090658 (diff) |
feat(cli): give access to `process` global everywhere (#25291)
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/98_global_scope_shared.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/js/98_global_scope_shared.js b/runtime/js/98_global_scope_shared.js index b6e480216..41df35c60 100644 --- a/runtime/js/98_global_scope_shared.js +++ b/runtime/js/98_global_scope_shared.js @@ -31,6 +31,7 @@ import * as webidl from "ext:deno_webidl/00_webidl.js"; import { DOMException } from "ext:deno_web/01_dom_exception.js"; import * as abortSignal from "ext:deno_web/03_abort_signal.js"; import * as imageData from "ext:deno_web/16_image_data.js"; +import process from "node:process"; import { loadWebGPU } from "ext:deno_webgpu/00_init.js"; import * as webgpuSurface from "ext:deno_webgpu/02_surface.js"; import { unstableIds } from "ext:runtime/90_deno_ns.js"; @@ -137,6 +138,7 @@ const windowOrWorkerGlobalScope = { fetch: core.propWritable(fetch.fetch), EventSource: core.propWritable(eventSource.EventSource), performance: core.propWritable(performance.performance), + process: core.propWritable(process), reportError: core.propWritable(event.reportError), setInterval: core.propWritable(timers.setInterval), setTimeout: core.propWritable(timers.setTimeout), |