mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
Use pub/sub instead of send/recv
This commit is contained in:
parent
9590c87c62
commit
2443f7efee
6 changed files with 40 additions and 40 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue