Skip to content

Commit

Permalink
Merge pull request atom#5 from abetomo/fix_deprecated_callback
Browse files Browse the repository at this point in the history
Fix deprecated callback
  • Loading branch information
goddessfreya authored Dec 20, 2019
2 parents 0c83612 + e99e477 commit fef5593
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 @@ -53,5 +53,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 fef5593

Please sign in to comment.