summaryrefslogtreecommitdiff
path: root/test_ffi/tests/test.js
diff options
context:
space:
mode:
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);