Skip to content

console.assert() with message should include "Assertion failed" alongside message #19953

@190n

Description

@190n

What version of Bun is running?

1.2.15-canary.63+df017990a

What platform is your computer?

Darwin 24.4.0 arm64 arm

What steps can reproduce the bug?

console.assert(false, "message");

What is the expected behavior?

$ node -e 'console.assert(false, "message")'
Assertion failed: message

What do you see instead?

$ bun -e 'console.assert(false, "message")'
message

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmed bugWe can reproduce this issueconsoleRelated to console apisgood first issueSomething that would be good for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions