Skip to content

Conversation

@zharinov
Copy link
Member

Summary

  • Replace .ok().flatten().is_some() with .expect().is_some() in DFA regex search
  • VM now panics on DFA search failure instead of silently returning "no match"

Why

The VM is on the hotpath and should assume upstream bytecode is valid. Silent failure masks compiler bugs.

@zharinov zharinov merged commit fed20f1 into master Jan 15, 2026
3 checks passed
@zharinov zharinov deleted the refactor/vm-dfa-panic branch January 15, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants