Skip to content

doc: clarify ERR_AMBIGUOUS_ARGUMENT - #22542

Closed
Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:clarify
Closed

doc: clarify ERR_AMBIGUOUS_ARGUMENT#22542
Trott wants to merge 2 commits into
nodejs:masterfrom
Trott:clarify

Conversation

@Trott

@Trott Trott commented Aug 27, 2018

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to Node.js documentation. errors Issues and PRs related to JavaScript errors originating in Node.js core. labels Aug 27, 2018
Comment thread doc/api/errors.md
An function argument is being used in a way that suggests that the function
signature may be misunderstood. This is thrown by the `assert` module when the
`message` parameter in `assert.throws(block, message)` matches the error message
thrown by `block` because that usage suggests that the user believes `message`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider renaming block to fn or function.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, and I think it should be fn to avoid the problem of function being a keyword in JavaScript.

@Trott Trott added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Aug 27, 2018
@Trott

Trott commented Aug 27, 2018

Copy link
Copy Markdown
Member Author

@vsemozhetbyt

Copy link
Copy Markdown
Contributor

Node.js Collaborators, please, add 👍 here if you approve fast-tracking.

@Trott Trott added the fast-track PRs proposed for a shorter-than-standard waiting period before landing. label Aug 27, 2018
Trott added a commit to Trott/io.js that referenced this pull request Aug 27, 2018
PR-URL: nodejs#22542
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@Trott

Trott commented Aug 27, 2018

Copy link
Copy Markdown
Member Author

Landed in d8855e4

@Trott Trott closed this Aug 27, 2018
addaleax pushed a commit that referenced this pull request Aug 27, 2018
PR-URL: #22542
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Sep 3, 2018
PR-URL: #22542
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Sep 6, 2018
PR-URL: #22542
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@Trott
Trott deleted the clarify branch January 13, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. doc Issues and PRs related to Node.js documentation. errors Issues and PRs related to JavaScript errors originating in Node.js core. fast-track PRs proposed for a shorter-than-standard waiting period before landing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants