-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
tools: add [src] links to assert.html #22601
Conversation
Parse `const assert = module.exports = ok;` as exporting a constructor named `assert`.
test/fixtures/apilinks/reverse.json
Outdated
@@ -0,0 +1,3 @@ | |||
{ | |||
"asserts.ok": "reverse.js#L10" |
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.
Any chance we could figure out that this should link to L5? (It seems too tricky to me but I figured I’d ask 🙂)
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'll take a look. I'm inclined to only do that for statements of the form:
x.y = y;
In other words, not for the following (which would be an alias):
x.y = z;
Thoughts?
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 that sounds reasonable, yeah :)
Hard to explain, see test case for examples. :-)
Parse `const assert = module.exports = ok;` as exporting a constructor named `assert`. PR-URL: nodejs#22601 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Landed: 5da1553 |
Parse `const assert = module.exports = ok;` as exporting a constructor named `assert`. PR-URL: #22601 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Parse `const assert = module.exports = ok;` as exporting a constructor named `assert`. PR-URL: #22601 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Parse `const assert = module.exports = ok;` as exporting a constructor named `assert`. PR-URL: #22601 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Parse
const assert = module.exports = ok;
as exporting a constructornamed
assert
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes