summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/examples/http_bench_json_ops.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/examples/http_bench_json_ops.js b/core/examples/http_bench_json_ops.js
index 3a5dd05c5..aba7da432 100644
--- a/core/examples/http_bench_json_ops.js
+++ b/core/examples/http_bench_json_ops.js
@@ -57,6 +57,7 @@ async function serve(rid) {
async function main() {
Deno.core.ops();
+ Deno.core.registerErrorClass("Error", Error);
const listenerRid = listen();
Deno.core.print(`http_bench_json_ops listening on http://127.0.0.1:4544/\n`);