From ff9ff4a3771689c56d557bf0dbeeb46a50d1adf2 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 22 Apr 2021 02:50:50 +0200 Subject: 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) --- core/ops_json.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'core/ops_json.rs') diff --git a/core/ops_json.rs b/core/ops_json.rs index d368453d9..309fac12d 100644 --- a/core/ops_json.rs +++ b/core/ops_json.rs @@ -122,8 +122,6 @@ mod tests { r#" // First we initialize the ops cache. This maps op names to their id's. Deno.core.ops(); - // Register the error class. - Deno.core.registerErrorClass('Error', Error); async function f1() { await Deno.core.opAsync('op_throw', 'hello'); -- cgit v1.2.3