tools,doc: apilinks should handle root scenarios#22721
Merged
kfarnung merged 0 commit intonodejs:masterfrom Sep 10, 2018
Merged
tools,doc: apilinks should handle root scenarios#22721kfarnung merged 0 commit intonodejs:masterfrom
kfarnung merged 0 commit intonodejs:masterfrom
Conversation
rubys
approved these changes
Sep 6, 2018
tools/doc/apilinks.js
Outdated
Member
There was a problem hiding this comment.
Nit: should probably be lhs.type (and yes, that applies to the line below too).
Contributor
Author
There was a problem hiding this comment.
Thanks! While doing this I noticed the redundant check and removed it. The logic should be that we only look for the object in cases where it's already a MemberExpression and only replace it in cases where the object is also MemberExpression. I compared the output with and without my changes and it's identical, so I think this logic is sound.
Contributor
Author
jasnell
approved these changes
Sep 6, 2018
4 tasks
4 tasks
Contributor
Author
Contributor
Author
Contributor
Author
|
Looks like #22706 should replace part of my fix, I've rebased and I'm retesting locally before pushing. |
Contributor
Author
|
Rebased and passing tests. |
Contributor
Author
Contributor
Author
|
Landed in 3bdc61d |
targos
pushed a commit
that referenced
this pull request
Sep 10, 2018
* Prevent crash when setting root properties * Allow return outside of function PR-URL: #22721 Reviewed-By: Sam Ruby <rubys@intertwingly.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In Node-ChakraCore we ran into some issues with this script. Rather than fix them downstream I think the fixes are potentially valuable here.
Root properties example: https://github.com/nodejs/node-chakracore/blob/a3d02b2794fa7fdf03be48d3b4a8cd87b7345402/lib/trace_mgr.js#L618
Return outside of function example: https://github.com/nodejs/node-chakracore/blob/a3d02b2794fa7fdf03be48d3b4a8cd87b7345402/lib/v8.js#L17-L19
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes