From 64037b1f027ac977a0f227669d367cf2e1c71791 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 28 Aug 2024 21:13:34 +0200 Subject: 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. --- runtime/js/99_main.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'runtime/js') 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); -- cgit v1.2.3