summaryrefslogtreecommitdiff
path: root/core/examples/http_bench.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/examples/http_bench.js')
-rw-r--r--core/examples/http_bench.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/examples/http_bench.js b/core/examples/http_bench.js
index db57401cc..dc204dfca 100644
--- a/core/examples/http_bench.js
+++ b/core/examples/http_bench.js
@@ -123,8 +123,10 @@ async function serve(rid) {
let ops;
async function main() {
- Deno.core.setAsyncHandler(handleAsyncMsgFromRust);
ops = Deno.core.ops();
+ for (const opName in ops) {
+ Deno.core.setAsyncHandler(ops[opName], handleAsyncMsgFromRust);
+ }
Deno.core.print("http_bench.js start\n");