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/examples/hello_world.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/examples/hello_world.rs') diff --git a/core/examples/hello_world.rs b/core/examples/hello_world.rs index 154c05d97..3a40ee29a 100644 --- a/core/examples/hello_world.rs +++ b/core/examples/hello_world.rs @@ -74,10 +74,6 @@ const _newline = new Uint8Array([10]); function print(value) { Deno.core.dispatchByName('op_print', 0, value.toString(), _newline); } - -// Finally we register the error class used by op_sum -// so that it throws the correct class. -Deno.core.registerErrorClass('Error', Error); "#, ) .unwrap(); -- cgit v1.2.3