summaryrefslogtreecommitdiff
path: root/cli/rt/99_main.js
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-08-26 00:22:15 +0200
committerGitHub <noreply@github.com>2020-08-26 00:22:15 +0200
commit9bfb0df805719cb3f022a5b5d9f9d898ae954c2e (patch)
tree6c7d62d95fcbde54ebbe1035bdc74618c63cfbc0 /cli/rt/99_main.js
parentd0ccab7fb7dd80030d3765ca9a9af44de6ecda5a (diff)
refactor: remove OpError, use ErrBox everywhere (#7187)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/rt/99_main.js')
-rw-r--r--cli/rt/99_main.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/rt/99_main.js b/cli/rt/99_main.js
index 18cc1d251..846216ec4 100644
--- a/cli/rt/99_main.js
+++ b/cli/rt/99_main.js
@@ -195,10 +195,14 @@ delete Object.prototype.__proto__;
core.registerErrorClass("UnexpectedEof", errors.UnexpectedEof);
core.registerErrorClass("BadResource", errors.BadResource);
core.registerErrorClass("Http", errors.Http);
- core.registerErrorClass("URIError", URIError);
- core.registerErrorClass("TypeError", TypeError);
- core.registerErrorClass("Other", Error);
core.registerErrorClass("Busy", errors.Busy);
+ core.registerErrorClass("NotSupported", errors.NotSupported);
+ core.registerErrorClass("Error", Error);
+ core.registerErrorClass("RangeError", RangeError);
+ core.registerErrorClass("ReferenceError", ReferenceError);
+ core.registerErrorClass("SyntaxError", SyntaxError);
+ core.registerErrorClass("TypeError", TypeError);
+ core.registerErrorClass("URIError", URIError);
}
// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope