summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/unstable_ffi_6.js
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2022-06-20 14:06:04 +0300
committerGitHub <noreply@github.com>2022-06-20 16:36:04 +0530
commit3d6fa64f19e74924813ece5e5fbd53023342bac8 (patch)
tree9786948872549be0a6e44ab769c04a3d474a7774 /cli/tests/testdata/unstable_ffi_6.js
parent60869c2598321386f57e55537e8c99ed011fbb95 (diff)
feat(ext/ffi): Callbacks (#14663)
This commit adds support for unstable FFI callbacks. A callback is registered using the `Deno.UnsafeCallback` API. The backing memory for the callback can be disposed of using `Deno.UnsafeCallback#close`. It is not safe to pass the callback after calling close. Callbacks from other than the isolate thread are not supported. Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com> Co-authored-by: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'cli/tests/testdata/unstable_ffi_6.js')
-rw-r--r--cli/tests/testdata/unstable_ffi_6.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/testdata/unstable_ffi_6.js b/cli/tests/testdata/unstable_ffi_6.js
index cc791b8f0..c66681225 100644
--- a/cli/tests/testdata/unstable_ffi_6.js
+++ b/cli/tests/testdata/unstable_ffi_6.js
@@ -1 +1 @@
-Deno.core.opSync("op_ffi_cstr_read", [0, 0]);
+Deno.core.opSync("op_ffi_cstr_read", 0n);