From 9e50b3ee61b88b8767ecd1165f2aee62a81842de Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 4 Sep 2020 21:52:19 +1000 Subject: fix: don't expose globalThis.__bootstrap (#7344) --- cli/tsc/99_main_compiler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/tsc') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index aa334907a..dede279c1 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -14,7 +14,6 @@ // Removes the `__proto__` for security reasons. This intentionally makes // Deno non compliant with ECMA-262 Annex B.2.2.1 // -// eslint-disable-next-line @typescript-eslint/no-explicit-any delete Object.prototype.__proto__; ((window) => { @@ -1528,7 +1527,7 @@ delete Object.prototype.__proto__; core.registerErrorClass("TypeError", TypeError); core.registerErrorClass("Other", Error); core.registerErrorClass("Busy", errors.Busy); - globalThis.__bootstrap = undefined; + delete globalThis.__bootstrap; runtimeStart("TS"); } -- cgit v1.2.3