-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Changed the second parameter of assert.throws to match the errors #13035
Conversation
|
||
|
||
console.error('undefined reference'); | ||
script = new Script('foo.bar = 5;'); | ||
assert.throws(function() { | ||
script.create; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this addition a mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it was there earlier, but it had no semi-colon. So it was one of the errors that popped up during make jslint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just re-checked it with https://github.com/nodejs/node/blob/master/test/parallel/test-vm-new-script-new-context.js
It's a sure-shot mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this added line. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the added line. Thanks.
|
||
|
||
console.error('undefined reference'); | ||
script = new Script('foo.bar = 5;'); | ||
assert.throws(function() { | ||
script.create; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this added line. Thanks
|
||
|
||
console.error('undefined reference'); | ||
script = new Script('foo.bar = 5;'); | ||
assert.throws(function() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still adding a blank line. Can we remove that addition, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending CI
CI: https://ci.nodejs.org/job/node-test-commit/9952/ P.S. There might be a problem to land this, @AkshayIyer12 we'll need you to "rebase" this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Landed in a593c74. |
Changed the second parameter of assert.throws to match the errors. PR-URL: #13035 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Changed the second parameter of assert.throws to match the errors. PR-URL: nodejs#13035 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Changed the second parameter of assert.throws to match the errors. PR-URL: #13035 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Checklist
Affected core subsystem(s)