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.
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
src,doc: add SyntaxError napi support #40736
src,doc: add SyntaxError napi support #40736
Changes from 2 commits
bdf8809
2f2a2b3
6fafc06
d3e7ac7
a9cc563
c22c337
5c52bec
f733054
c6adcb4
e0398c6
e4165cc
99216f4
606cc0b
f2c8ad6
a8906c4
8c2a1b3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This is a new api and it should be enabled / disabled throw
NAPI_EXPERIMENTAL
: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.
This is a new api and it should be enabled / disabled throw
NAPI_EXPERIMENTAL
: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.
sure, it's here: 6fafc06
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.
@NickNaso I see that adding this
ifdef
failed the tests on Mac (due toimplicit declaration of function 'napi_throw_syntax_error' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
), tho not on the other platforms.I assume it's either that the compiler is stricter on Mac (or defined to be stricter), or that the tests in this setup are not running with
NAPI_EXPERIMENTAL
.What do you recommend to do?
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.
You should add this declaration:
to the head of file
/test/js-native-api/test_error/test_error.c
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.
@NickNaso Thanks. It helped.
The failing action (
test-asan / test-asan (pull_request)
) seems flaky, I see:I don't have the permissions to re-run. can you please?
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.
Please @idan-at could you please rename the functions you added like reported below?
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.
of course - did it here a9cc563