diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-22 02:50:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 20:50:50 -0400 |
commit | ff9ff4a3771689c56d557bf0dbeeb46a50d1adf2 (patch) | |
tree | 3c80c874f706484cfc83b148d4b8d48e5bd664fc /op_crates | |
parent | 89bb774010b6b80bcbf7c19e8ed28f569abf4d90 (diff) |
refactor(core): simplify error handling (#10297)
- register builtin v8 errors in core.js so consumers don't have to
- remove complexity of error args handling (consumers must provide a
constructor with custom args, core simply provides msg arg)
Diffstat (limited to 'op_crates')
-rw-r--r-- | op_crates/url/benches/url_ops.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/op_crates/url/benches/url_ops.rs b/op_crates/url/benches/url_ops.rs index 17029b9c6..37efb0a33 100644 --- a/op_crates/url/benches/url_ops.rs +++ b/op_crates/url/benches/url_ops.rs @@ -28,7 +28,6 @@ fn create_js_runtime() -> JsRuntime { "init", r#" Deno.core.ops(); - Deno.core.registerErrorClass('Error', Error); "#, ) .unwrap(); |