Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit e99e477

Browse files
committed
Fix deprecated callback
The following warning. ``` ../src/worker.cc: In member function ‘virtual void CheckSpellingWorker::HandleOKCallback()’: ../src/worker.cc:44:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] callback->Call(2, argv); ```
1 parent edf4678 commit e99e477

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/worker.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ void CheckSpellingWorker::HandleOKCallback() {
4141
}
4242

4343
Local<Value> argv[] = { Nan::Null(), result };
44-
callback->Call(2, argv);
44+
Nan::AsyncResource resource("CheckSpellingWorker::HandleOKCallback");
45+
callback->Call(2, argv, &resource);
4546
}

0 commit comments

Comments
 (0)