diff options
author | Chengzhong Wu <legendecas@gmail.com> | 2023-01-07 05:37:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 22:37:42 +0100 |
commit | 82e930726ee5dbac8e6eae0962c07c72daf9843c (patch) | |
tree | aba0c34052254e46de873f1c8226d4f88bccc91e /runtime/js | |
parent | d1cdf65b106e1bcb3a2b324c013f908c12d6368f (diff) |
fix(core): get v8 console from context extra bindings (#17243)
Explicitly get `console` object from V8 instead of relying on `console`
defined on the global object.
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/99_main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 873f371ca..d4a5a0a84 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -399,7 +399,7 @@ delete Intl.v8BreakIterator; performance.setTimeOrigin(DateNow()); net.setup(runtimeOptions.unstableFlag); - const consoleFromV8 = window.console; + const consoleFromV8 = window.Deno.core.console; const wrapConsole = window.__bootstrap.console.wrapConsole; // Remove bootstrapping data from the global scope @@ -544,7 +544,7 @@ delete Intl.v8BreakIterator; performance.setTimeOrigin(DateNow()); net.setup(runtimeOptions.unstableFlag); - const consoleFromV8 = window.console; + const consoleFromV8 = window.Deno.core.console; const wrapConsole = window.__bootstrap.console.wrapConsole; // Remove bootstrapping data from the global scope |