FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove unused 3rd argument in assert.strictEqual() by yahavf6 · Pull Request #22113 · nodejs/node · GitHub

/ node Public

Remove unused 3rd argument in assert.strictEqual() - #22113

Closed
yahavf6 wants to merge 1 commit into
nodejs:masterfrom
yahavf6:yahavf6-removeUnusedSSrtingError040818
Closed

Remove unused 3rd argument in assert.strictEqual()#22113
yahavf6 wants to merge 1 commit into
nodejs:masterfrom
yahavf6:yahavf6-removeUnusedSSrtingError040818

Conversation

yahavf6 commented Aug 3, 2018

Copy link
Copy Markdown
Contributor

Line 9 contains a call to assert.strictEqual(). It has a string literal as the third argument. Unfortunately, that means that if there is an AssertionError, the value of status (the first argument) will not be reported. The third argument here is not adding any value (and in fact is reporting the wrong thing in the event of an AssertionError) so removed it.

Checklist
  • [x ] make -j4 test (UNIX), or vcbuild test (Windows) passes
  • [x ] commit message follows commit guidelines

nodejs-github-bot added node-api Issues and PRs related to the Node-API. test Issues and PRs related to the tests. labels Aug 3, 2018

Trott left a comment
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The change to lib/assert.js introduces a breaking change to a public API. lib/assert.js should not be changed in this PR.

The change to the test is good.

yahavf6 force-pushed the yahavf6-removeUnusedSSrtingError040818 branch from c71cacc to c188ca0 Compare August 4, 2018 17:28

yahavf6 commented Aug 4, 2018

Copy link
Copy Markdown
Contributor Author

PR updated

yahavf6 commented Aug 4, 2018 via email

Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

yahavf6 commented Aug 7, 2018

Copy link
Copy Markdown
Contributor Author

Let's merge?

maclover7 added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Aug 7, 2018
Trott pushed a commit to Trott/io.js that referenced this pull request Aug 7, 2018
PR-URL: nodejs#22113
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>

Trott commented Aug 7, 2018

Copy link
Copy Markdown
Member

Landed in 1284fa2.

Thanks for the contribution! 🎉

(If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.)

Trott closed this Aug 7, 2018
targos pushed a commit that referenced this pull request Aug 11, 2018
PR-URL: #22113
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
firass111 pushed a commit to firass111/Project_node1 that referenced this pull request Apr 16, 2025
PR-URL: nodejs/node#22113
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
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

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. node-api Issues and PRs related to the Node-API. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants


Back | FazBrowse Home | New Git URL