Closed trxcllnt closed 5 years ago
@ukrbublik thanks for reviewing.
I'm not super familiar with nan nor older versions of v8, but I've encountered this problem in other libraries I PR'd yesterday too. I did a blanket find/replace for the value->ToX()
methods, as mentioned in the nan doc on converters. If you have any ideas on what the fix should be, I'd be happy to make the changes.
You're right that node itself now has threads and SAB, but using posix shared memory still has advantages:
@ukrbublik ok! looks like ToChecked
is an alias for FromJust
, and using that method fixes the build errors.
Thanks!
Thanks for PR.
But with changes compiling for old versions of nodejs will fail. As now for CircleCI (configured for nodejs 4)
Btw do you think there can be use for this lib in Nodejs 12? Since it has threads and SharedArrayBuffer.