-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
lib: return boolean result of assert.match
method
#35115
Conversation
The `assert.match` method by default will throws if there is no match, this change can add the function of instead of throwing or not, returns the boolean result of match. Fixes: nodejs#33869
I think this effectively just gives you the same result as I would suggest either closing #33869 as wontfix – I agree with the concern voiced by the author that this would be unexpected for an assertion method – or following @lundibundi’s suggestion there and making all the underlying assertion mechanisms available as separate methods, not just |
:O haha, this is true...
That really make sense to my. |
Closing this, this is almost like |
The
assert.match
method by default will throws if there is no match,this change can add the function of instead of throwing or not, returns
the boolean result of match.
Fixes: #33869
Note: I'm going to leave the documentation as a TODO :)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes