mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Add deno_send tests.
This commit is contained in:
parent
0e07e16dd6
commit
cbbe8ad999
4 changed files with 45 additions and 9 deletions
|
@ -7,3 +7,13 @@ window['foo'] = () => {
|
|||
return "foo";
|
||||
}
|
||||
|
||||
function assert(cond) {
|
||||
if (!cond) throw Error("assert failed");
|
||||
}
|
||||
|
||||
function recvabc() {
|
||||
deno_recv((msg) => {
|
||||
assert(msg instanceof ArrayBuffer);
|
||||
assert(msg.byteLength === 3);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue