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: make sure throws is able to handle primitives #20482

Closed
wants to merge 1 commit into from

Commits on May 10, 2018

  1. assert: make sure throws is able to handle primitives

    This fixes some possible issues with `assert.throws` in combination
    with an validation object. It will now properly handle primitive
    values being thrown as error.
    
    It also makes sure the `generatedMessage` property is properly set
    if `assert.throws` is used in combination with an validation object
    and improves the error performance in such cases by only creating
    the error once.
    BridgeAR committed May 10, 2018
    Configuration menu
    Copy the full SHA
    34b4818 View commit details
    Browse the repository at this point in the history