-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nan examples fail on node 12 #94
Comments
@nodejs/addon-api is this something you are aware of? |
Yes, but nan also supports node 12. I got very confused trying to update some nan-related code using patterns found here, because my code wouldn’t compile. It took me awhile to figure out the official examples are wrong. Until nan is deprecated in favor of napi / node-addon-api the examples should probably be maintained. Or not - in which case the readme should make that clear so others aren’t also confused. |
@josephg How extensive are the changes? I don't think we have any active maintainers of the examples on the nan side. We'll need to find a volunteer who has time to update the docs. |
@mhdawson looks like V8 finally dropped the non- |
I ended up abandoning my nan code for node 12+ in favor of an early napi port because it was easier to port all the code to napi than figure out how to use nan correctly in all cases, across all versions of v8. In the interim, maybe we should change the README to mention that the examples don't work on node 12+? |
@josephg updating the REAMDE at least temporarily sounds good. Would you like to submit a PR for that? |
With node 12 the nan examples fail:
Other examples fail in similar ways.
Updating to the latest version of nan does not fix the issue.
The text was updated successfully, but these errors were encountered: