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

benchmark: favor === over == #8000

Closed
wants to merge 1 commit into from
Closed

benchmark: favor === over == #8000

wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Aug 6, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

benchmark

Description of change

Refs: #7961 (comment)

@Trott Trott added the benchmark Issues and PRs related to the benchmark subsystem. label Aug 6, 2016
@Trott
Copy link
Member Author

Trott commented Aug 6, 2016

/cc @AndreasMadsen

@mscdex
Copy link
Contributor

mscdex commented Aug 6, 2016

LGTM

@mscdex
Copy link
Contributor

mscdex commented Aug 6, 2016

@AndreasMadsen
Copy link
Member

LGTM, but I'm not sure how important it is, if we can't make it a formal rule.

@mscdex
Copy link
Contributor

mscdex commented Aug 6, 2016

@AndreasMadsen Well, we can't create a linter rule for it since there are legitimate uses for ==.

@Trott
Copy link
Member Author

Trott commented Aug 6, 2016

ESLint allows for exceptions when comparing to null, comparing literals, and using typeof. That will cover most of the cases. Any other legitimate cases, we can disable the lint rule with comments. So I think we should be able to do it. But I prefer to do small and manageable chunks of code at a time...

We could also enable it only for specific directories like benchmark.

So if we want this to be lint-enforced, there are definitely options.

@addaleax
Copy link
Member

addaleax commented Aug 7, 2016

LGTM

3 similar comments
@cjihrig
Copy link
Contributor

cjihrig commented Aug 8, 2016

LGTM

@jasnell
Copy link
Member

jasnell commented Aug 8, 2016

LGTM

@jbergstroem
Copy link
Member

LGTM

Trott added a commit to Trott/io.js that referenced this pull request Aug 9, 2016
Refs: nodejs#7961 (comment)
PR-URL: nodejs#8000
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Andreas Madsen <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@Trott
Copy link
Member Author

Trott commented Aug 9, 2016

Landed in ae25ed3

@Trott Trott closed this Aug 9, 2016
@cjihrig cjihrig mentioned this pull request Aug 10, 2016
cjihrig pushed a commit that referenced this pull request Aug 10, 2016
Refs: #7961 (comment)
PR-URL: #8000
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Andreas Madsen <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@cjihrig cjihrig mentioned this pull request Aug 11, 2016
@Trott Trott deleted the eqeqeq branch January 13, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Issues and PRs related to the benchmark subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants