diff options
Diffstat (limited to 'ext/ffi/call.rs')
-rw-r--r-- | ext/ffi/call.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ffi/call.rs b/ext/ffi/call.rs index ad12d0985..ea7875108 100644 --- a/ext/ffi/call.rs +++ b/ext/ffi/call.rs @@ -1,7 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use crate::callback::PtrSymbol; -use crate::check_unstable2; +use crate::check_unstable; use crate::dlfcn::DynamicLibraryResource; use crate::ir::*; use crate::symbol::NativeType; @@ -285,7 +285,7 @@ pub fn op_ffi_call_ptr_nonblocking<FP>( where FP: FfiPermissions + 'static, { - check_unstable2(&state, "Deno.UnsafeFnPointer#call"); + check_unstable(&state.borrow(), "Deno.UnsafeFnPointer#call"); { let mut state = state.borrow_mut(); let permissions = state.borrow_mut::<FP>(); @@ -381,7 +381,7 @@ pub fn op_ffi_call_ptr<FP>( where FP: FfiPermissions + 'static, { - check_unstable2(&state, "Deno.UnsafeFnPointer#call"); + check_unstable(&state.borrow(), "Deno.UnsafeFnPointer#call"); { let mut state = state.borrow_mut(); let permissions = state.borrow_mut::<FP>(); |