summaryrefslogtreecommitdiff
path: root/core/http_bench.js
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-03-26 23:22:07 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-03-26 08:22:07 -0400
commitc43cfedeba5d6ac96e1b1febed8549e750606e3f (patch)
tree7b3799259895acadf25294704ea03a9465051e9c /core/http_bench.js
parented2977d3c0e9ab3295a3bb47b844b2953d608197 (diff)
namespace reorg: libdeno and DenoCore to Deno.core (#1998)
Diffstat (limited to 'core/http_bench.js')
-rw-r--r--core/http_bench.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/http_bench.js b/core/http_bench.js
index d7cffcb75..8eb764b55 100644
--- a/core/http_bench.js
+++ b/core/http_bench.js
@@ -42,7 +42,7 @@ function send(promiseId, opId, arg, zeroCopy = null) {
scratch32[1] = opId;
scratch32[2] = arg;
scratch32[3] = -1;
- return DenoCore.dispatch(scratchBytes, zeroCopy);
+ return Deno.core.dispatch(scratchBytes, zeroCopy);
}
/** Returns Promise<number> */
@@ -123,17 +123,17 @@ async function serve(rid) {
}
async function main() {
- DenoCore.setAsyncHandler(handleAsyncMsgFromRust);
+ Deno.core.setAsyncHandler(handleAsyncMsgFromRust);
- libdeno.print("http_bench.js start\n");
+ Deno.core.print("http_bench.js start\n");
const listenerRid = listen();
- libdeno.print(`listening http://127.0.0.1:4544/ rid = ${listenerRid}\n`);
+ Deno.core.print(`listening http://127.0.0.1:4544/ rid = ${listenerRid}\n`);
while (true) {
const rid = await accept(listenerRid);
- // libdeno.print(`accepted ${rid}`);
+ // Deno.core.print(`accepted ${rid}`);
if (rid < 0) {
- libdeno.print(`accept error ${rid}`);
+ Deno.core.print(`accept error ${rid}`);
return;
}
serve(rid);