Skip to content

assert.deepEqual treats RegExp literals equal to {} #1362

@hirokith

Description

@hirokith

Just as the title says,

~ ➤ n io use 1.6.4                                                                            
> assert.deepEqual(/a/, {})
undefined

expect AssertionError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    assertIssues and PRs related to the assert subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions