summaryrefslogtreecommitdiff
path: root/runtime/js/06_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/06_util.js')
-rw-r--r--runtime/js/06_util.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/runtime/js/06_util.js b/runtime/js/06_util.js
index c643f758a..277e83ec5 100644
--- a/runtime/js/06_util.js
+++ b/runtime/js/06_util.js
@@ -4,7 +4,6 @@
((window) => {
const {
decodeURIComponent,
- Error,
ObjectPrototypeIsPrototypeOf,
Promise,
SafeArrayIterator,
@@ -34,19 +33,6 @@
}
}
- class AssertionError extends Error {
- constructor(msg) {
- super(msg);
- this.name = "AssertionError";
- }
- }
-
- function assert(cond, msg = "Assertion failed.") {
- if (!cond) {
- throw new AssertionError(msg);
- }
- }
-
function createResolvable() {
let resolve;
let reject;
@@ -154,8 +140,6 @@
log,
setLogDebug,
createResolvable,
- assert,
- AssertionError,
pathFromURL,
writable,
nonEnumerable,