aboutsummaryrefslogtreecommitdiff
path: root/test/js/deno/harness/util.ts
diff options
context:
space:
mode:
authorGravatar Ashcon Partovi <ashcon@partovi.net> 2023-03-08 11:38:09 -0800
committerGravatar Ashcon Partovi <ashcon@partovi.net> 2023-03-08 11:38:09 -0800
commitab02ab25b1ea37f2861099f91e3783591e08efdd (patch)
treeb8a51acdc8ce63c01cdaa13d0a10b3c6d37ebb54 /test/js/deno/harness/util.ts
parentdeb7a2b19225265ad8f847da300f9f6db7c5e8b3 (diff)
downloadbun-ab02ab25b1ea37f2861099f91e3783591e08efdd.tar.gz
bun-ab02ab25b1ea37f2861099f91e3783591e08efdd.tar.zst
bun-ab02ab25b1ea37f2861099f91e3783591e08efdd.zip
Improve test harness
Diffstat (limited to 'test/js/deno/harness/util.ts')
-rw-r--r--test/js/deno/harness/util.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/deno/harness/util.ts b/test/js/deno/harness/util.ts
new file mode 100644
index 000000000..a7fbf7fce
--- /dev/null
+++ b/test/js/deno/harness/util.ts
@@ -0,0 +1,5 @@
+import { concatArrayBuffers } from "bun";
+
+export function concat(...buffers: Uint8Array[]): Uint8Array {
+ return new Uint8Array(concatArrayBuffers(buffers));
+}