mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
[deno] Fixup DOMException builders
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
1 parent
a8cfdef04e
commit
e12b2c27f1
1 file changed
+9
-3
Vendored
+9
-3
@@ -299,19 +299,25 @@ core.registerErrorBuilder(
|
||||
core.registerErrorBuilder(
|
||||
"DOMExceptionAbortError",
|
||||
function DOMExceptionAbortError(msg) {
|
||||
return new domException.DOMException(msg, "AbortError");
|
||||
return new DOMException(msg, "AbortError");
|
||||
},
|
||||
);
|
||||
core.registerErrorBuilder(
|
||||
"DOMExceptionInvalidCharacterError",
|
||||
function DOMExceptionInvalidCharacterError(msg) {
|
||||
return new domException.DOMException(msg, "InvalidCharacterError");
|
||||
return new DOMException(msg, "InvalidCharacterError");
|
||||
},
|
||||
);
|
||||
core.registerErrorBuilder(
|
||||
"DOMExceptionInvalidStateError",
|
||||
function DOMExceptionInvalidStateError(msg) {
|
||||
return new DOMException(msg, "InvalidStateError");
|
||||
},
|
||||
);
|
||||
core.registerErrorBuilder(
|
||||
"DOMExceptionDataError",
|
||||
function DOMExceptionDataError(msg) {
|
||||
return new domException.DOMException(msg, "DataError");
|
||||
return new DOMException(msg, "DataError");
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user