Skip to content

Commit

Permalink
Fix build on node 10.x
Browse files Browse the repository at this point in the history
This fix comes from
noble#84 (comment)
,  so I can't personally vouch for it.

Change-Id: Ifde2a3b996ab89a4b12b0eb155c081aca2b11dc3
Origin: https://github.com/jrobeson/node-bluetooth-hci-socket
Forwarded: noble#91
  • Loading branch information
johnny authored and rzr committed Dec 14, 2018
1 parent 9161582 commit 91ebcfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"dependencies": {
"debug": "^2.2.0",
"nan": "^2.0.5",
"nan": "^2.10.0",
"node-pre-gyp": "0.6.x"
},
"optionalDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/BluetoothHciSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void BluetoothHciSocket::emitErrnoError() {
Nan::New(strerror(errno)).ToLocalChecked()
};

Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
Local<Value> error = Nan::NewInstance(errorConstructor, 1, constructorArgs).ToLocalChecked();

Local<Value> argv[2] = {
Nan::New("error").ToLocalChecked(),
Expand Down

0 comments on commit 91ebcfe

Please sign in to comment.