diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-09-27 07:54:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 07:54:43 -0600 |
commit | 8ef52b3e6ac1bb2a369ce2eed2d64997a8d5f3ab (patch) | |
tree | 170fbb79e8a8d63b91d78af8d007dcb5b2c03af2 /ext/ffi/ir.rs | |
parent | 507f24c4746e24ea60dcebdffacd0b66e3d4bfc1 (diff) |
chore(ext/ffi): migrate part of FFI to op2 (#20699)
Diffstat (limited to 'ext/ffi/ir.rs')
-rw-r--r-- | ext/ffi/ir.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/ffi/ir.rs b/ext/ffi/ir.rs index 8ca96a280..52709d2d4 100644 --- a/ext/ffi/ir.rs +++ b/ext/ffi/ir.rs @@ -483,7 +483,7 @@ pub fn ffi_parse_function_arg( pub fn ffi_parse_args<'scope>( scope: &mut v8::HandleScope<'scope>, - args: serde_v8::Value<'scope>, + args: v8::Local<v8::Array>, parameter_types: &[NativeType], ) -> Result<Vec<NativeValue>, AnyError> where @@ -493,8 +493,6 @@ where return Ok(vec![]); } - let args = v8::Local::<v8::Array>::try_from(args.v8_value) - .map_err(|_| type_error("Invalid FFI parameters, expected Array"))?; let mut ffi_args: Vec<NativeValue> = Vec::with_capacity(parameter_types.len()); |