From f85d65e066302ad7357321ec9e2940c2346d2263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 28 Dec 2023 20:30:07 +0100 Subject: chore: update deno_core to 0.240.0 (#21726) --- runtime/js/99_main.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'runtime/js') 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); -- cgit v1.2.3