summaryrefslogtreecommitdiff
path: root/ext/web/06_streams.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/06_streams.js')
-rw-r--r--ext/web/06_streams.js20
1 files changed, 1 insertions, 19 deletions
diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js
index 777ad152b..7ef5a6131 100644
--- a/ext/web/06_streams.js
+++ b/ext/web/06_streams.js
@@ -21,7 +21,6 @@
BigInt64ArrayPrototype,
BigUint64ArrayPrototype,
DataView,
- Error,
Int8ArrayPrototype,
Int16ArrayPrototype,
Int32ArrayPrototype,
@@ -58,24 +57,7 @@
WeakMapPrototypeSet,
} = globalThis.__bootstrap.primordials;
const consoleInternal = window.__bootstrap.console;
-
- class AssertionError extends Error {
- constructor(msg) {
- super(msg);
- this.name = "AssertionError";
- }
- }
-
- /**
- * @param {unknown} cond
- * @param {string=} msg
- * @returns {asserts cond}
- */
- function assert(cond, msg = "Assertion failed.") {
- if (!cond) {
- throw new AssertionError(msg);
- }
- }
+ const { AssertionError, assert } = window.__bootstrap.infra;
/** @template T */
class Deferred {