-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
module: add support for abi stable module API #11975
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
43ab5a8
module: add support for abi stable module API
jasongin a5d43d1
Fix undefined snprintf use for older compiler
jasongin 87c42e7
all: update --napi-modules flag to not have a yes/no
876e6c8
doc: mention experimental status of --napi-modules flag
b129624
src: improve message regarding N-API experimental status
66944b8
test: convert most addons-napi tests to C
9e3ab83
Use size_t where appropriate (#181)
jasongin fb8ced4
Convert all locals and parameter names to snake_case (#193)
boingoing 116bd19
Address some minor PR feedback (#187)
jasongin 1b2f2db
Add tests for type casts and coercions (#194)
jasongin 1427b33
napi: change napi_instanceof() to use Symbol.hasInstance
6b4ce53
Add some type checking (#195)
jasongin f21ab80
Updates for review feedback (#199)
jasongin e1ca374
Address PR feedback (#201)
jasongin 9c0b151
Updates for review feedback (#203)
jasongin 375af79
Refcount for v8impl::Reference should be unsigned (#207)
boingoing 20b6cf2
Check value is external in napi_unwrap (#210)
jasongin 7a339c0
Remove the async API sources (#212)
boingoing 232f004
napi: add napi_env to napi_get_last_error_info() (#211)
aa22a2a
Add the _array suffix to the TypedArray type enum (#213)
boingoing 0e61d00
Fix jslint issue in addons-napi test
jasongin c87eade
Remove NAPI_EXTERN from napi_addon_register_func
jasongin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m not a fan of printing warnings like these… if the user opted into the feature, then they opted in because they know what they were asking for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CTC has specifically requested command-line enablement along with a warning message for features with experimental status. Tracing does the same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a link somewhere to that decision?
I don't quite understand the justification for a printed warning for a feature that can't even be used without a flag. If you're using the flag, you wanted the feature and are quite aware that it is experimental. Do any V8 features do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VM Summit 3 meeting notes has this
For 8.0, include an opt-in runtime flag, show experimental warning when a NAPI module is loaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If consensus is that documentation of experimental status is sufficient and this warning message is not necessary, we can take it out. I don't recall anyone feeling very strongly about this at the VM summit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasongin I’d say take it out, and we can re-visit that in the unlikely case anybody complains.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the main motivation was to ensure that anybody turning it on is fully aware of the status and to be consistent with what we have done for other experimental features.