-
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
es6 modification and include error message #10016
Conversation
|
||
assert.throws(function() { | ||
assert.throws(function(err, cb) { | ||
if (err) return cb(err); | ||
require('internal/freelist'); | ||
}); |
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.
Sorry, the snippet explaining the task probably should have been a bit more precise on what to do here – This function won’t be called with err
and cb
arguments.
assert.throws
takes a second argument that can be a regexp and validates the error message against that (like this). Do you think you could update this PR with that?
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.
ack, working on this now
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.
Ping @christyleung1987: Still working on this? (If you have any questions or need additional assistance, feel free to ask here or on the #node-dev channel on Freenode IRC.)
@christyleung1987 I took the liberty of making the change requested by @addaleax and pushing it to your branch. Hope that's OK! If some reviewers could please take a look, that would be great! |
Hi all, Sorry for the late reply, I didn't mean to ignore the messages, but I got the flu and strap throat at the same time and I'm still trying to recover from it. This has been a really great learning experience. |
* var -> const * add RegExp to assert.throws() to check error message PR-URL: nodejs#10016 Reviewed-By: James M Snell <[email protected]>
Landed in c00f647. |
* var -> const * add RegExp to assert.throws() to check error message PR-URL: #10016 Reviewed-By: James M Snell <[email protected]>
* var -> const * add RegExp to assert.throws() to check error message PR-URL: #10016 Reviewed-By: James M Snell <[email protected]>
* var -> const * add RegExp to assert.throws() to check error message PR-URL: #10016 Reviewed-By: James M Snell <[email protected]>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
Description of change