diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-03-14 23:14:15 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-14 18:44:15 +0100 |
| commit | b4e42953e1d243f2eda20e5be6b845d60b7bf688 (patch) | |
| tree | 10b3bfff165f9c04f9174c7c399d44b9b724c3b3 /core/examples/http_bench_json_ops.js | |
| parent | 4e3ed37037a2aa1edeac260dc3463a81d9cf9b88 (diff) | |
feat(core): codegen ops (#13861)
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
Diffstat (limited to 'core/examples/http_bench_json_ops.js')
| -rw-r--r-- | core/examples/http_bench_json_ops.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/examples/http_bench_json_ops.js b/core/examples/http_bench_json_ops.js index 22e1b468c..5b16776f4 100644 --- a/core/examples/http_bench_json_ops.js +++ b/core/examples/http_bench_json_ops.js @@ -11,12 +11,12 @@ const responseBuf = new Uint8Array( /** Listens on 0.0.0.0:4500, returns rid. */ function listen() { - return Deno.core.opSync("listen"); + return Deno.core.opSync("op_listen"); } /** Accepts a connection, returns rid. */ function accept(serverRid) { - return Deno.core.opAsync("accept", serverRid); + return Deno.core.opAsync("op_accept", serverRid); } async function serve(rid) { |
