1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(ext/ffi): unstable op_ffi_unsafe_callback_ref (#15439)

This commit is contained in:
Luca Casonato 2022-08-10 05:09:45 +02:00 committed by GitHub
parent 04d402116c
commit bdd8ddbe4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1841,6 +1841,7 @@ where
#[op]
fn op_ffi_unsafe_callback_ref(state: &mut deno_core::OpState, inc_dec: bool) {
check_unstable(state, "Deno.dlopen");
let ffi_state = state.borrow_mut::<FfiState>();
if inc_dec {
ffi_state.active_refed_functions += 1;