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

Commit fef5593

Browse files
authored
Merge pull request #5 from abetomo/fix_deprecated_callback
Fix deprecated callback
2 parents 0c83612 + e99e477 commit fef5593

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
@@ -53,5 +53,6 @@ void CheckSpellingWorker::HandleOKCallback() {
5353
}
5454

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

0 commit comments

Comments
 (0)