Skip to content

Conversation

@maclover7
Copy link
Contributor

@maclover7maclover7 commented Sep 10, 2017

A few things going on here:

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

errors, test

@nodejs-github-botnodejs-github-bot added the errors Issues and PRs related to JavaScript errors originated in Node.js core. label Sep 10, 2017
@apapirovski
Copy link
Contributor

apapirovski commented Sep 10, 2017

Was just looking at this too. I think, ideally, the doc at doc/api/errors.md also needs to be updated since it has two references to ERR_VALUE_OUT_OF_RANGE.

Copy link
Contributor

@MylesBorinsMylesBorins left a comment

Choose a reason for hiding this comment

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

LGTM

@MylesBorins
Copy link
Contributor

We should likely swap the order of these two commits to avoid having a commit with a broken test suite... this would break git bisect

Also fixes error being (now!) properly thrown by alphabetize-errors.
Was not using proper magic comment syntax before!
@maclover7
Copy link
ContributorAuthor

@MylesBorins swapped commit order

'At least one valid performance entry type is required');
E('ERR_VALUE_OUT_OF_RANGE','The value of "%s" must be %s. Received "%s"');
E('ERR_VALUE_OUT_OF_RANGE',(start,end,value)=>{
return`The value of "${start}" must be ${end}. Received "${value}"`;
Copy link
Member

Choose a reason for hiding this comment

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

The variable names are misleading. The first parameter is the name of the value and the second is a description of the set of permitted values, so they don't actually depict a [start, end] range. Could you change the names while you are at it?

@BridgeAR
Copy link
Member

@maclover7 this needs a rebase.

@jasnell
Copy link
Member

Rebased on landing.

jasnell pushed a commit that referenced this pull request Sep 14, 2017
Also fixes error being (now!) properly thrown by alphabetize-errors. also properly enable lint rule Was not using proper magic comment syntax before! -URL: #15307 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

Landed in e9358af

@jasnelljasnell closed this Sep 14, 2017
@maclover7maclover7 deleted the jm-lint-enable branch September 14, 2017 23:37
addaleax pushed a commit to addaleax/ayo that referenced this pull request Sep 17, 2017
Also fixes error being (now!) properly thrown by alphabetize-errors. also properly enable lint rule Was not using proper magic comment syntax before! -URL: nodejs/node#15307 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

This would need to be backported for v8.x

Qard pushed a commit to Qard/ayo that referenced this pull request Sep 21, 2017
Also fixes error being (now!) properly thrown by alphabetize-errors. also properly enable lint rule Was not using proper magic comment syntax before! -URL: nodejs/node#15307 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
jasnell pushed a commit that referenced this pull request Sep 25, 2017
Also fixes error being (now!) properly thrown by alphabetize-errors. also properly enable lint rule Was not using proper magic comment syntax before! -URL: #15307 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
@MylesBorins
Copy link
Contributor

@refack can you please include this in the backport of #15083

MylesBorins pushed a commit that referenced this pull request Oct 3, 2017
Also fixes error being (now!) properly thrown by alphabetize-errors. also properly enable lint rule Was not using proper magic comment syntax before! -URL: #15307 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

errorsIssues and PRs related to JavaScript errors originated in Node.js core.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@maclover7@apapirovski@MylesBorins@BridgeAR@jasnell@lpinca@cjihrig@tniessen@hiroppy@nodejs-github-bot