Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Assertion messages duplicated since v0.10.3 #5292

@mscdex

Description

@mscdex

This commit is causing duplicate messages in the AssertionError error thrown.

Example:

assert(false, 'Aw crap');

// displays:
// assert.js:98
//  throw new assert.AssertionError({
//        ^
// AssertionError: Aw crap: Aw crap
// ....

I think 4716dc6 should be reverted (why change this.name for AssertionError?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions