Open jasongitmail opened 2 months ago
Can you try with bun upgrade --canary
, pretty sure we fixed this bug recently but haven't released it yet.
I upgraded to canary and received the same result in the repl. Still has the reported issue with name and type.
this only happens with []
(empty) files
yep, my other tests for non-empty files pass consistently between and node
What version of Bun is running?
1.1.21+70ca2b76c
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
Start a node repl and a bun repl, and then:
Results:
What is the expected behavior?
Expected to match NodeJS's behavior:
What do you see instead?
Actual output with Bun:
file.name
is expected to be "empty.txt".file.type
is expected to be "text/plain" without the chartset, to match Node.Additional information
Despite Bun's repl warning, this is not repl related.
I encountered this in my unit tests using
bun:test
. Then reproduced it in the repl to demonstrate it.It's small, but "if it doesn't match Node it's a bug", so I wanted to report it.