summaryrefslogtreecommitdiff
path: root/ext/node/global.rs
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-08-28 21:13:34 +0200
committerGitHub <noreply@github.com>2024-08-28 21:13:34 +0200
commit64037b1f027ac977a0f227669d367cf2e1c71791 (patch)
treeb990ff19c14a9cca3a0779ea47c818407cd3587b /ext/node/global.rs
parentb708a13eb02510925b5fd964fe933b4896093185 (diff)
refactor: don't virtualize the `console` global for node mode (#25263)
Turns out we only virtualized it so one could have a `Console` property, and the other one not. We can just make this `console.Console` available everywhere.
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 0b4adfc7d..61bcc3343 100644
--- a/ext/node/global.rs
+++ b/ext/node/global.rs
@@ -52,7 +52,6 @@ const fn str_to_utf16<const N: usize>(s: &str) -> [u16; N] {
// - clearImmediate (node only)
// - clearInterval (both, but different implementation)
// - clearTimeout (both, but different implementation)
-// - console (both, but different implementation)
// - global (node only)
// - performance (both, but different implementation)
// - process (node only)
@@ -63,13 +62,12 @@ 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]; 14] = [
+const MANAGED_GLOBALS: [&[u16]; 13] = [
&str_to_utf16::<6>("Buffer"),
&str_to_utf16::<17>("WorkerGlobalScope"),
&str_to_utf16::<14>("clearImmediate"),
&str_to_utf16::<13>("clearInterval"),
&str_to_utf16::<12>("clearTimeout"),
- &str_to_utf16::<7>("console"),
&str_to_utf16::<6>("global"),
&str_to_utf16::<11>("performance"),
&str_to_utf16::<7>("process"),