Skip to content

Commit

Permalink
Fix deprecated callback
Browse files Browse the repository at this point in the history
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);
```
  • Loading branch information
abetomo committed Jul 5, 2018
1 parent edf4678 commit e99e477
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ void CheckSpellingWorker::HandleOKCallback() {
}

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

0 comments on commit e99e477

Please sign in to comment.