Skip to content

Commit a470a67

Browse files
committed
⬆️ Nan::Call requires ToLocalChecked
1 parent 77b615a commit a470a67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generate/templates/manual/src/promise_completion.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ v8::Local<v8::Value> PromiseCompletion::Bind(Nan::Persistent<v8::Function> &func
7878

7979
v8::Local<v8::Value> argv[1] = { object };
8080

81-
return scope.Escape(Nan::Call(bind, Nan::To<v8::Object>(Nan::New(function)).ToLocalChecked(), 1, argv));
81+
return scope.Escape(Nan::Call(bind, Nan::To<v8::Object>(Nan::New(function)).ToLocalChecked(), 1, argv).ToLocalChecked());
8282
}
8383

8484
// calls the callback stored in the PromiseCompletion, passing the baton that

0 commit comments

Comments
 (0)