mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor: cleanup assert() & AssertionError definitions (#13859)
This commit is contained in:
parent
ad8e238348
commit
e55dee7fd8
8 changed files with 30 additions and 60 deletions
|
@ -25,6 +25,7 @@ delete Object.prototype.__proto__;
|
|||
PromisePrototypeThen,
|
||||
TypeError,
|
||||
} = window.__bootstrap.primordials;
|
||||
const infra = window.__bootstrap.infra;
|
||||
const util = window.__bootstrap.util;
|
||||
const eventTarget = window.__bootstrap.eventTarget;
|
||||
const globalInterfaces = window.__bootstrap.globalInterfaces;
|
||||
|
@ -705,7 +706,7 @@ delete Object.prototype.__proto__;
|
|||
ObjectFreeze(globalThis.Deno.core);
|
||||
} else {
|
||||
delete globalThis.Deno;
|
||||
util.assert(globalThis.Deno === undefined);
|
||||
infra.assert(globalThis.Deno === undefined);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue