summaryrefslogtreecommitdiff
path: root/cli/js/ops/fetch.ts
diff options
context:
space:
mode:
authorValentin Anger <syrupthinker@gryphno.de>2020-06-01 20:20:47 +0200
committerGitHub <noreply@github.com>2020-06-01 14:20:47 -0400
commitbecbb56b19e96e4dd72b861217a855fba953d290 (patch)
treed9e99771c537ef87a4a945f0120775c337ef90aa /cli/js/ops/fetch.ts
parent12d741c2fe453625d510313beaa2e1c282784c00 (diff)
feat(core): Ops can take several zero copy buffers (#4788)
Diffstat (limited to 'cli/js/ops/fetch.ts')
-rw-r--r--cli/js/ops/fetch.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/ops/fetch.ts b/cli/js/ops/fetch.ts
index 09b9ac1ec..290376c86 100644
--- a/cli/js/ops/fetch.ts
+++ b/cli/js/ops/fetch.ts
@@ -24,5 +24,5 @@ export function fetch(
zeroCopy = new Uint8Array(body.buffer, body.byteOffset, body.byteLength);
}
- return sendAsync("op_fetch", args, zeroCopy);
+ return sendAsync("op_fetch", args, ...(zeroCopy ? [zeroCopy] : []));
}