Open
Description
What version of Bun is running?
1.2.18
What platform is your computer?
Darwin 24.5.0 x86_64 i386
What steps can reproduce the bug?
Hi,
I would like to report a difference in Bun's behavior/output when Bun handles importing Node/npm code. The difference can be noticed when you run the following snippet as it is, and when you comment line 1 and run it again. I suspect it is connected to how Bun handles Node/npm code.
const fs = require("fs"); //comment this and see
function g() {
console.log(Object.getOwnPropertyNames(this))
return typeof this;
}
g();
Regards,
AH
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response