Skip to content

Commit

Permalink
upgrade nan to 2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferner committed Mar 12, 2018
1 parent d001797 commit 0b9e99b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"find-java-home": "0.2.0",
"glob": "7.1.2",
"lodash": "4.17.5",
"nan": "2.7.0"
"nan": "2.9.2"
},
"devDependencies": {
"chalk": "2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/methodCallBaton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ void MethodCallBaton::WorkComplete() {
v8::Local<v8::Value> argv[] = {
result
};
callback->Call(1, argv);
callback->Call(1, argv, async_resource);
} else {
v8::Local<v8::Value> argv[] = {
Nan::Undefined(),
result
};
callback->Call(2, argv);
callback->Call(2, argv, async_resource);
}

delete callback;
Expand Down

0 comments on commit 0b9e99b

Please sign in to comment.