Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

rubys
Copy link
Member

@rubys rubys commented Aug 30, 2018

Parse const assert = module.exports = ok; as exporting a constructor
named assert.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Parse `const assert = module.exports = ok;` as exporting a constructor
named `assert`.
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory. labels Aug 30, 2018
@@ -0,0 +1,3 @@
{
"asserts.ok": "reverse.js#L10"
Copy link
Member

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 🙂)

Copy link
Member Author

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?

Copy link
Member

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.  :-)
@rubys
Copy link
Member Author

rubys commented Aug 30, 2018

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 31, 2018
rubys added a commit to rubys/node that referenced this pull request Sep 2, 2018
Parse `const assert = module.exports = ok;` as exporting a constructor
named `assert`.

PR-URL: nodejs#22601
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@rubys
Copy link
Member Author

rubys commented Sep 2, 2018

Landed: 5da1553

@rubys rubys closed this Sep 2, 2018
targos pushed a commit that referenced this pull request Sep 2, 2018
Parse `const assert = module.exports = ok;` as exporting a constructor
named `assert`.

PR-URL: #22601
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos pushed a commit that referenced this pull request Sep 3, 2018
Parse `const assert = module.exports = ok;` as exporting a constructor
named `assert`.

PR-URL: #22601
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos pushed a commit that referenced this pull request Sep 6, 2018
Parse `const assert = module.exports = ok;` as exporting a constructor
named `assert`.

PR-URL: #22601
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants