mirror of
https://github.com/denoland/deno.git
synced 2025-08-31 15:57:53 +00:00
chore: update deno_core to 0.240.0 (#21726)
This commit is contained in:
parent
c08319262a
commit
f85d65e066
6 changed files with 29 additions and 129 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue