Regex works in Node.js but not in Bun #17970
Labels
bug
Something isn't working
confirmed bug
We can reproduce this issue
jsc
Something related to JavaScriptCore
node.js
Compatibility with Node.js APIs
regression
What version of Bun is running?
1.2.4+fd9a5ea66
What platform is your computer?
Darwin 24.3.0 arm64 arm
What steps can reproduce the bug?
Run the following code using
node
andbun
, you can observe that Node.js returns a result for the regex, while inbun
, it logsnull
:This regex might not be correct, but it should still return the same value.
What is the expected behavior?
Both Node.js and Bun should return the same results.
What do you see instead?
Bun returns
null
.Additional information
No response
The text was updated successfully, but these errors were encountered: