Closed
Description
napi_status napi_call_function(napi_env env,
napi_value recv,
napi_value func,
size_t argc,
const napi_value* argv,
napi_value* result) {
NAPI_PREAMBLE(env);
v8::Isolate* isolate = env->isolate;
v8::Local<v8::Context> context = isolate->GetCurrentContext();
v8::Local<v8::Value> v8recv = v8impl::V8LocalValueFromJsValue(recv);
...
What if recv
is NULL
? I am tempted to allow NULL here, because we forego an additional N-API call just to retrieve a JS undefined
as a napi_value
. Still, we should not assume that it's not NULL
.
Metadata
Metadata
Assignees
Labels
No labels