diff options
Diffstat (limited to 'ext/ffi/call.rs')
-rw-r--r-- | ext/ffi/call.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/ffi/call.rs b/ext/ffi/call.rs index 8a9b393c3..98186936c 100644 --- a/ext/ffi/call.rs +++ b/ext/ffi/call.rs @@ -16,6 +16,7 @@ use deno_core::serde_json::Value; use deno_core::serde_v8; use deno_core::serde_v8::ExternalPointer; use deno_core::v8; +use deno_core::OpState; use deno_core::ResourceId; use libffi::middle::Arg; use serde::Serialize; @@ -274,7 +275,7 @@ fn ffi_call( #[op(v8)] pub fn op_ffi_call_ptr_nonblocking<'scope, FP>( scope: &mut v8::HandleScope<'scope>, - state: Rc<RefCell<deno_core::OpState>>, + state: Rc<RefCell<OpState>>, pointer: *mut c_void, def: ForeignFunction, parameters: serde_v8::Value<'scope>, @@ -322,7 +323,7 @@ where #[op(v8)] pub fn op_ffi_call_nonblocking<'scope>( scope: &mut v8::HandleScope<'scope>, - state: Rc<RefCell<deno_core::OpState>>, + state: Rc<RefCell<OpState>>, rid: ResourceId, symbol: String, parameters: serde_v8::Value<'scope>, @@ -374,7 +375,7 @@ pub fn op_ffi_call_nonblocking<'scope>( #[op(v8)] pub fn op_ffi_call_ptr<FP, 'scope>( scope: &mut v8::HandleScope<'scope>, - state: Rc<RefCell<deno_core::OpState>>, + state: Rc<RefCell<OpState>>, pointer: *mut c_void, def: ForeignFunction, parameters: serde_v8::Value<'scope>, |