diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-09-16 13:28:29 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 09:58:29 +0200 |
| commit | 868f38d4528bae508fdb222402441ba374db0721 (patch) | |
| tree | 73aac0f9b3f063d80a8b35378bd17c0ba746fb9a /runtime/js | |
| parent | 9270cad67cffefa4c7ced8361580834d92a00732 (diff) | |
fix(ext/crypto): use DataError in importKey() (#12071)
Diffstat (limited to 'runtime/js')
| -rw-r--r-- | runtime/js/99_main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 4fa10bad0..5c1c04766 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -289,6 +289,12 @@ delete Object.prototype.__proto__; return new domException.DOMException(msg, "InvalidCharacterError"); }, ); + core.registerErrorBuilder( + "DOMExceptionDataError", + function DOMExceptionDataError(msg) { + return new domException.DOMException(msg, "DataError"); + }, + ); } class Navigator { |
