mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
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.
This commit is contained in:
parent
d1cdf65b10
commit
82e930726e
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue