diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-10-04 21:42:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 21:42:17 +0200 |
commit | a5568066b3d979111134029f9e4f0c1b462b948e (patch) | |
tree | 14c4233cc01d55eda7f608b5194f6b088264b52e /ext/ffi/call.rs | |
parent | 9a46a824bd897e240af8a14f9d950ab6d95f42a5 (diff) |
refactor: use deno_core::FeatureChecker for unstable checks (#20765)
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>(); |