You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Js.Re.matches -> RegExp.Result.matches - Unexpected bug caused by migration to v12 #8029
The automated migration results in a different output, which was very difficult to trace in my case. I spent around 4 hours today (mostly because the issue wasn't reproducing locally)
This is obsolete on master: the Js modules, including Js.Re, were removed in #8531, so the Js.Re.matches migration no longer exists there. The semantic difference of the v12 migration remains a known pitfall for 12.x users. Closing.
Activity
zth commentedon Nov 21, 2025
Could you have a look at the migration and see what the solution might be? What is it doing wrong?
DZakh commentedon Nov 21, 2025
I think the migration logic is correct; it's just different logic now, which fixes the previous incorrect behaviour.
zth commentedon Nov 21, 2025
I don't understand. What's the problem here if the migration is not wrong?
DZakh commentedon Nov 23, 2025
Look at the generated code. It produces different output, which leads to different runtime behaviour.
zth commentedon Nov 24, 2025
Then I would say that the migration isn't correct, or even can't be done, if the APIs are not equivalent. What do you think?
cknitt commentedon Oct 19, 2026
This is obsolete on master: the
Jsmodules, includingJs.Re, were removed in #8531, so theJs.Re.matchesmigration no longer exists there. The semantic difference of the v12 migration remains a known pitfall for 12.x users. Closing.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kr4cjoUi2f5VpMvE6wT9bo