diff --git a/napi/src/call_context.rs b/napi/src/call_context.rs index c5d67503..c46b8ca3 100644 --- a/napi/src/call_context.rs +++ b/napi/src/call_context.rs @@ -40,8 +40,8 @@ impl<'env> CallContext<'env> { ) -> Self { Self { env, - callback_info, raw_this, + callback_info, args, length, } diff --git a/napi/src/js_values/escapable_handle_scope.rs b/napi/src/js_values/escapable_handle_scope.rs index 473f0879..b7282191 100644 --- a/napi/src/js_values/escapable_handle_scope.rs +++ b/napi/src/js_values/escapable_handle_scope.rs @@ -19,8 +19,8 @@ impl EscapableHandleScope { sys::napi_escape_handle(env, handle_scope, NapiRaw::raw(&value), &mut result) })?; Ok(Self { - value, handle_scope, + value, }) }