bun
bun copied to clipboard
Unexpected behavior when logging object with key `name`
What version of Bun is running?
0.3.0
What platform is your computer?
Linux 5.15.74.2-microsoft-standard-WSL2 #1 SMP Wed Nov 2 19:50:29 UTC 2022 x86_64 x86_64
What steps can reproduce the bug?
console.log({ name: "bun" });
How often does it reproduce? Is there a required condition?
No condition required, it's always the same output
What is the expected behavior?
{name: 'bun'}
What do you see instead?
bun {
name: "bun"
}
The value of name
in the object is printed infront of the object itself. The key has to be name
and the value can be any string
.
Additional information
No response