From b88b7c92443aeacc269f9823a8ced06b08018f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 12 Nov 2022 05:37:37 +0100 Subject: chore: upgrade rusty_v8 to 0.55.0 (#16604) --- cli/napi/js_native_api.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 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 07b583beb..a0605af11 100644 --- a/cli/napi/js_native_api.rs +++ b/cli/napi/js_native_api.rs @@ -1260,10 +1260,11 @@ 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 { +fn napi_detach_arraybuffer(env: *mut Env, value: napi_value) -> Result { + let env: &mut Env = env.as_mut().ok_or(Error::InvalidArg)?; let value = transmute::>(value); let ab = v8::Local::::try_from(value).unwrap(); - ab.detach(); + ab.detach(v8::undefined(&mut env.scope()).into()); Ok(()) } -- cgit v1.2.3