summaryrefslogtreecommitdiff
path: root/ext/node/global.rs
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-09-04 11:04:06 +0200
committerGitHub <noreply@github.com>2024-09-04 11:04:06 +0200
commitb333dccee82f4328a65d0c3c45c7aa5c19255220 (patch)
tree6799aff43eb6c8f2e1186c18a2b973b056f967a4 /ext/node/global.rs
parent4c3b17b54703b455d8ae4b51354d18838c090658 (diff)
feat(cli): give access to `process` global everywhere (#25291)
Diffstat (limited to 'ext/node/global.rs')
-rw-r--r--ext/node/global.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/node/global.rs b/ext/node/global.rs
index 61bcc3343..4d6695431 100644
--- a/ext/node/global.rs
+++ b/ext/node/global.rs
@@ -54,7 +54,6 @@ const fn str_to_utf16<const N: usize>(s: &str) -> [u16; N] {
// - clearTimeout (both, but different implementation)
// - global (node only)
// - performance (both, but different implementation)
-// - process (node only)
// - setImmediate (node only)
// - setInterval (both, but different implementation)
// - setTimeout (both, but different implementation)
@@ -62,7 +61,7 @@ const fn str_to_utf16<const N: usize>(s: &str) -> [u16; N] {
// UTF-16 encodings of the managed globals. THIS LIST MUST BE SORTED.
#[rustfmt::skip]
-const MANAGED_GLOBALS: [&[u16]; 13] = [
+const MANAGED_GLOBALS: [&[u16]; 12] = [
&str_to_utf16::<6>("Buffer"),
&str_to_utf16::<17>("WorkerGlobalScope"),
&str_to_utf16::<14>("clearImmediate"),
@@ -70,7 +69,6 @@ const MANAGED_GLOBALS: [&[u16]; 13] = [
&str_to_utf16::<12>("clearTimeout"),
&str_to_utf16::<6>("global"),
&str_to_utf16::<11>("performance"),
- &str_to_utf16::<7>("process"),
&str_to_utf16::<4>("self"),
&str_to_utf16::<12>("setImmediate"),
&str_to_utf16::<11>("setInterval"),