mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext/console): don't depend on globalThis present (#13387)
This commit is contained in:
parent
1ab5dea367
commit
bc666e42a8
5 changed files with 24 additions and 3 deletions
|
@ -35,6 +35,7 @@ delete Object.prototype.__proto__;
|
|||
const timers = window.__bootstrap.timers;
|
||||
const base64 = window.__bootstrap.base64;
|
||||
const encoding = window.__bootstrap.encoding;
|
||||
const colors = window.__bootstrap.colors;
|
||||
const Console = window.__bootstrap.console.Console;
|
||||
const worker = window.__bootstrap.worker;
|
||||
const internals = window.__bootstrap.internals;
|
||||
|
@ -574,6 +575,7 @@ delete Object.prototype.__proto__;
|
|||
cpuCount,
|
||||
} = runtimeOptions;
|
||||
|
||||
colors.setNoColor(noColor);
|
||||
if (locationHref != null) {
|
||||
location.setLocationHref(locationHref);
|
||||
}
|
||||
|
@ -664,6 +666,7 @@ delete Object.prototype.__proto__;
|
|||
cpuCount,
|
||||
} = runtimeOptions;
|
||||
|
||||
colors.setNoColor(noColor);
|
||||
location.setLocationHref(locationHref);
|
||||
numCpus = cpuCount;
|
||||
registerErrors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue