diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-12-28 20:30:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 19:30:07 +0000 |
commit | f85d65e066302ad7357321ec9e2940c2346d2263 (patch) | |
tree | e9948080ff31e23b98bad3b4dfbbe1d63182c76a /runtime/js/99_main.js | |
parent | c08319262afeca47d1b9f3dbfa3254e692a48a2d (diff) |
chore: update deno_core to 0.240.0 (#21726)
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index b67b6a0bf..2ab10c13e 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -39,7 +39,6 @@ import { inspectArgs, quoteString, setNoColorFn, - wrapConsole, } from "ext:deno_console/01_console.js"; import * as performance from "ext:deno_web/15_performance.js"; import * as url from "ext:deno_url/00_url.js"; @@ -480,9 +479,8 @@ function bootstrapMainRuntime(runtimeOptions) { ObjectSetPrototypeOf(globalThis, Window.prototype); if (inspectFlag) { - const consoleFromV8 = core.console; const consoleFromDeno = globalThis.console; - wrapConsole(consoleFromDeno, consoleFromV8); + core.wrapConsole(consoleFromDeno, core.v8Console); } event.setEventTargetData(globalThis); @@ -574,8 +572,6 @@ function bootstrapWorkerRuntime( performance.setTimeOrigin(DateNow()); globalThis_ = globalThis; - const consoleFromV8 = globalThis.Deno.core.console; - // Remove bootstrapping data from the global scope delete globalThis.__bootstrap; delete globalThis.bootstrap; @@ -603,7 +599,7 @@ function bootstrapWorkerRuntime( ObjectSetPrototypeOf(globalThis, DedicatedWorkerGlobalScope.prototype); const consoleFromDeno = globalThis.console; - wrapConsole(consoleFromDeno, consoleFromV8); + core.wrapConsole(consoleFromDeno, core.v8Console); event.setEventTargetData(globalThis); event.saveGlobalThisReference(globalThis); |