summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index d2626a07d..8d75ea739 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -184,10 +184,10 @@ delete Object.prototype.__proto__;
core.registerErrorClass("Http", errors.Http);
core.registerErrorClass("Busy", errors.Busy);
core.registerErrorClass("NotSupported", errors.NotSupported);
- core.registerErrorClass(
+ core.registerErrorBuilder(
"DOMExceptionOperationError",
function DOMExceptionOperationError(msg) {
- DOMException.prototype.constructor.call(this, msg, "OperationError");
+ return new DOMException(msg, "OperationError");
},
);
}