Open peilingjiang opened 3 months ago
It was due to no default export of lib0/number
🥲 Will close the issue for now.
Bun still shouldn't crash here. It should show a helpful error message.
It does show an error message, but at the very bottom of a crazy list of many times of crashes and auto-restarts -
1 | (function (entry, fetcher)
^
SyntaxError: Missing 'default' export in module '/Users/.../node_modules/lib0/number.js'.
1 | (function (entry, fetcher)
^
SyntaxError: Missing 'default' export in module '/Users/.../node_modules/lib0/number.js'.
I didn't scroll to the bottom, so I initially missed it. I will re-open the issue just in case it would be valuable to look into it!
How can we reproduce the crash?
Please take a look at the code below.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.20 (
ae19489
) on macos aarch64 [AutoCommand]Segmentation fault at address 0x0000001A
vmEntryToJavaScript
JSC::Interpreter::executeCall
JSC::runJSMicrotask
JSC::VM::drainMicrotasks
Bun::jsFunctionDrainMicrotaskQueue
llint_entry