summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2022-10-20 07:07:37 +0300
committerGitHub <noreply@github.com>2022-10-20 09:37:37 +0530
commite2be70b035459cb534360b72ece4ff2abaa09cd7 (patch)
tree6be089ecce80843c01cd85cd2ff049d03f9e0955 /cli/tests
parent722ea20e860df0a568b5d97734ad8d89aa7382a9 (diff)
feat(ext/ffi): Make op_ffi_ptr_of fast (#16297)
Makes `op_ffi_ptr_of` fast. One of the tests changed from printing `false` to `true` as the fast `&[u8]` slice path creates the slice with a null pointer. Thus the `op_ffi_ptr_of` will now return a null pointer value whereas previously it returned a dangling pointer value.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/testdata/run/ffi/unstable_ffi_4.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_4.js b/cli/tests/testdata/run/ffi/unstable_ffi_4.js
index 8b4f3d75a..150791233 100644
--- a/cli/tests/testdata/run/ffi/unstable_ffi_4.js
+++ b/cli/tests/testdata/run/ffi/unstable_ffi_4.js
@@ -1 +1 @@
-Deno.core.ops.op_ffi_ptr_of(new Uint8Array(0));
+Deno.core.ops.op_ffi_ptr_of(new Uint8Array(0), new Uint32Array(2));