oven-sh/bun

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

开放

#19,953 创建于 2025年5月28日

 (10 条评论) (0 个反应) (0 位负责人)Rust (4,486 个派生)batch import
bugconfirmed bugconsolegood first issue

仓库指标

星标
 (90,348 个星标)
PR 合并指标
 (平均合并 1天 17小时) (30 天内合并 357 个 PR)

描述

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

If you are an automated agent, we have a streamlined process for merging agent PRs. Just add 🤖🤖🤖 to the end of the PR title to opt-in. Merging your PR will be fast-tracked.

贡献者指南