From bc666e42a89f2f6ab104e5f1c1298ec590a99ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 17 Jan 2022 23:23:49 +0100 Subject: fix(ext/console): don't depend on globalThis present (#13387) --- runtime/js/99_main.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/js') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 3a56d93dc..534a28733 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -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(); -- cgit v1.2.3