diff options
Diffstat (limited to 'ext/ffi/lib.rs')
-rw-r--r-- | ext/ffi/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index 52e101a92..7e7756c93 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -1829,9 +1829,10 @@ impl Future for CallbackInfo { #[op] fn op_ffi_unsafe_callback_ref( - state: &mut deno_core::OpState, + state: Rc<RefCell<deno_core::OpState>>, rid: ResourceId, ) -> Result<impl Future<Output = Result<(), AnyError>>, AnyError> { + let state = state.borrow(); let callback_resource = state.resource_table.get::<UnsafeCallbackResource>(rid)?; |