diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-09-04 21:52:19 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 07:52:19 -0400 |
commit | 9e50b3ee61b88b8767ecd1165f2aee62a81842de (patch) | |
tree | 6064237d5d7edf6339816b3620c33c8e18ca8a50 /cli/tsc/99_main_compiler.js | |
parent | 15649b61bd7ac5d868f2df2825e242a39582a622 (diff) |
fix: don't expose globalThis.__bootstrap (#7344)
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 3 |
1 files changed, 1 insertions, 2 deletions
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"); } |