summaryrefslogtreecommitdiff
path: root/ext/ffi/00_ffi.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-29 22:02:26 +0100
committerGitHub <noreply@github.com>2024-01-29 22:02:26 +0100
commit345423cf7697326258ce8b32f681910f4a2f77de (patch)
tree484dd157be01e3dc0d4f34f28526dac1804d0250 /ext/ffi/00_ffi.js
parent909986fa6ed3404e76590438b387391a6c213e46 (diff)
refactor: Use virtul ops module (#22175)
Follow up to #22157. This leaves us with 4 usages of `ensureFastOps()` in `deno` itself. There's also about 150 usages of `Deno.core.ops.<op_name>` left as well.
Diffstat (limited to 'ext/ffi/00_ffi.js')
-rw-r--r--ext/ffi/00_ffi.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi/00_ffi.js b/ext/ffi/00_ffi.js
index 58d0b75f4..a572ed61c 100644
--- a/ext/ffi/00_ffi.js
+++ b/ext/ffi/00_ffi.js
@@ -6,7 +6,7 @@ const {
isDataView,
isTypedArray,
} = core;
-const {
+import {
op_ffi_buf_copy_into,
op_ffi_call_nonblocking,
op_ffi_call_ptr,
@@ -36,7 +36,7 @@ const {
op_ffi_unsafe_callback_close,
op_ffi_unsafe_callback_create,
op_ffi_unsafe_callback_ref,
-} = core.ensureFastOps(true);
+} from "ext:core/ops";
const {
ArrayBufferIsView,
ArrayBufferPrototypeGetByteLength,