diff options
author | Luca Casonato <hello@lcas.dev> | 2024-08-28 21:13:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 21:13:34 +0200 |
commit | 64037b1f027ac977a0f227669d367cf2e1c71791 (patch) | |
tree | b990ff19c14a9cca3a0779ea47c818407cd3587b /runtime/js/99_main.js | |
parent | b708a13eb02510925b5fd964fe933b4896093185 (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 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 8b0d579ab..24379b9df 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -536,10 +536,6 @@ function dispatchUnloadEvent() { } let hasBootstrapped = false; -// Delete the `console` object that V8 automatically adds onto the global wrapper -// object on context creation. We don't want this console object to shadow the -// `console` object exposed by the ext/node globalThis proxy. -delete globalThis.console; // Set up global properties shared by main and worker runtime. ObjectDefineProperties(globalThis, windowOrWorkerGlobalScope); |