summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/99_main.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 7742e2ba2..851d798c3 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -186,16 +186,11 @@ delete Object.prototype.__proto__;
core.registerErrorClass("Http", errors.Http);
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);
core.registerErrorClass(
"DOMExceptionOperationError",
- DOMException,
- "OperationError",
+ function DOMExceptionOperationError(msg) {
+ DOMException.prototype.constructor.call(this, msg, "OperationError");
+ },
);
}