Closed sloonz closed 5 years ago
Thanks, will try and find some time to get a fix up. It may take a few days, but I'm happy to merge a PR in the meantime.
Release 0.1.3
up on npm with the fix. Thanks a lot for the report + PR.
Hello @sjudson ,
As it's related to nodeJs 11, I have the following warning
when installing with npm :
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/extcrypto_addon/extcrypto/extcrypto.o
../extcrypto/extcrypto.cc:115:23: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value ipem(pem);
^
/Users/.../.node-gyp/11.13.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/.../.node-gyp/11.13.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
1 warning generated.
SOLINK_MODULE(target) Release/extcrypto_addon.node
gyp info ok
node version :
$ node -v
v11.13.0
Just let me know if you prefer me to open a new issue.
Thanks.
This code works fine with node 10.x, but throws an exception on node 11.x :
Exception :
Looks like the size must now be explicitly passed.
Replacing
writeIntLE
bywirteInt32LE
inutils.js
fixes the issue, with all tests still passing.