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/http_bench_json_ops.js | 1 - 1 file changed, 1 deletion(-) (limited to 'core/examples/http_bench_json_ops.js') diff --git a/core/examples/http_bench_json_ops.js b/core/examples/http_bench_json_ops.js index 687be7ec1..672747196 100644 --- a/core/examples/http_bench_json_ops.js +++ b/core/examples/http_bench_json_ops.js @@ -55,7 +55,6 @@ async function serve(rid) { async function main() { Deno.core.ops(); - Deno.core.registerErrorClass("Error", Error); const listenerRid = listen(); Deno.core.print(`http_bench_ops listening on http://127.0.0.1:4544/\n`); -- cgit v1.2.3