From 2443f7efee9c04f9331743a5e7ca5c71396f2004 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 11 Jun 2018 19:18:53 +0200 Subject: Use pub/sub instead of send/recv --- deno2/js/mock_runtime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deno2/js/mock_runtime.js') diff --git a/deno2/js/mock_runtime.js b/deno2/js/mock_runtime.js index cdb6031e3..b3ec7f034 100644 --- a/deno2/js/mock_runtime.js +++ b/deno2/js/mock_runtime.js @@ -10,8 +10,8 @@ function assert(cond) { if (!cond) throw Error("mock_runtime.js assert failed"); } -function recvabc() { - deno_recv((msg) => { +function subabc() { + deno_sub((msg) => { assert(msg instanceof ArrayBuffer); assert(msg.byteLength === 3); }); -- cgit v1.2.3