From 381932ce1e79f38bbf8bdf28b4e808038aead7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 30 Nov 2022 23:20:18 +0100 Subject: chore: upgrade rusty_v8 to 0.58.0 (#16879) --- cli/napi/js_native_api.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/napi/js_native_api.rs') diff --git a/cli/napi/js_native_api.rs b/cli/napi/js_native_api.rs index a0605af11..a4726fd39 100644 --- a/cli/napi/js_native_api.rs +++ b/cli/napi/js_native_api.rs @@ -1260,11 +1260,10 @@ fn napi_delete_reference(env: *mut Env, _nref: napi_ref) -> Result { } #[napi_sym::napi_sym] -fn napi_detach_arraybuffer(env: *mut Env, value: napi_value) -> Result { - let env: &mut Env = env.as_mut().ok_or(Error::InvalidArg)?; +fn napi_detach_arraybuffer(_env: *mut Env, value: napi_value) -> Result { let value = transmute::>(value); let ab = v8::Local::::try_from(value).unwrap(); - ab.detach(v8::undefined(&mut env.scope()).into()); + ab.detach(None); Ok(()) } -- cgit v1.2.3