mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
remove bootstrap methods from global scope after bootstrapping (#4869)
This commit is contained in:
parent
912a57f6a2
commit
1378df3364
12 changed files with 42 additions and 39 deletions
|
@ -72,6 +72,9 @@ export function bootstrapMainRuntime(): void {
|
|||
if (hasBootstrapped) {
|
||||
throw new Error("Worker runtime already bootstrapped");
|
||||
}
|
||||
// Remove bootstrapping methods from global scope
|
||||
// @ts-ignore
|
||||
globalThis.bootstrap = undefined;
|
||||
log("bootstrapMainRuntime");
|
||||
hasBootstrapped = true;
|
||||
Object.defineProperties(globalThis, windowOrWorkerGlobalScopeMethods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue