diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2022-03-19 13:57:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 13:57:37 +0100 |
commit | e55dee7fd894f705a0268a4734b00197021f0617 (patch) | |
tree | f6232128259430ba943da2c1d9ade6ad17697adc /runtime/js/06_util.js | |
parent | ad8e2383487e8ef4f15e7b86df80f6dc98fdcc79 (diff) |
refactor: cleanup assert() & AssertionError definitions (#13859)
Diffstat (limited to 'runtime/js/06_util.js')
-rw-r--r-- | runtime/js/06_util.js | 16 |
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, |