mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 15:21:26 -05:00
![Aapo Alasuutari](/assets/img/avatar_default.png)
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>
1 line
41 B
JavaScript
1 line
41 B
JavaScript
Deno.core.opSync("op_ffi_read_f64", 0n);
|