Closed titivermeesch closed 2 weeks ago
Possibly related to #8258
Related ably code: https://github.com/ably/ably-js/blob/3336b660407479ccec671da0601775309dc4cfd1/src/common/lib/types/errorinfo.ts#L13
Issue in Bun only having a getter: https://github.com/oven-sh/bun/issues/3150#issuecomment-1698134905 Related PR fix: https://github.com/oven-sh/bun/pull/8368
Fixed in bun v1.1.9 with #11082
What version of Bun is running?
1.0.24+6fa35839c
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
The code should complain about wrong authentication or correctly process the request
What do you see instead?
Additional information
I set up a reproduction repo here: https://github.com/titivermeesch/bun-ably-error-reproduction The script
npm run run-bun
fails, but when usingnpm run run-node
it works as expected. The first one uses bun and the second one uses Node v20.11.0)