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

assert: improve assert.throws #17585

Closed
wants to merge 2 commits into from

Commits on Dec 19, 2017

  1. assert: improve assert.throws

    Throw a TypeError in case a error message is provided in the second
    argument and a third argument is present as well.
    This is clearly a mistake and should not be done.
    BridgeAR committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    15bdd47 View commit details
    Browse the repository at this point in the history
  2. doc: improve .throws RegExp info

    It was not clear why the error name is actually also tested for when
    using a regular expression. This is now clarified.
    BridgeAR committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    7710a0d View commit details
    Browse the repository at this point in the history