summaryrefslogtreecommitdiff
path: root/test_ffi/tests/test.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-10-28 00:02:57 -0700
committerGitHub <noreply@github.com>2023-10-28 10:02:57 +0300
commit5b2d9fb8d4f13e6383a5eceb2227305445416298 (patch)
tree8fb2788a9ebfa8c00783e5606df0813e4c7abf23 /test_ffi/tests/test.js
parentdaf9756127a92f6682c4fdbc7d7047eb3a1586b6 (diff)
fix(ext/ffi): use anybuffer for op_ffi_buf_copy_into (#21006)
Fixes https://github.com/denoland/deno/issues/21005
Diffstat (limited to 'test_ffi/tests/test.js')
-rw-r--r--test_ffi/tests/test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test_ffi/tests/test.js b/test_ffi/tests/test.js
index 80c566398..cb0ea71ab 100644
--- a/test_ffi/tests/test.js
+++ b/test_ffi/tests/test.js
@@ -327,6 +327,8 @@ const into2 = new Uint8Array(3);
const into2ptr = Deno.UnsafePointer.of(into2);
const into2ptrView = new Deno.UnsafePointerView(into2ptr);
const into3 = new Uint8Array(3);
+const into4 = new Uint16Array(3);
+ptrView.copyInto(into4);
ptrView.copyInto(into);
console.log([...into]);
ptrView.copyInto(into2, 3);