VM RegExp's matchAsPrefix is inefficient. #11276
Labels
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
closed-obsolete
Closed as the reported issue is no longer relevant
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
It currently matches at the specified point or later, and then discards later matches.
It would be best if it only attempted a match at the specified start point.
If jscre does not support this, it might be necessary to create a different RegExp by appending "|()" to the original, and test using that - this will always match at the given position, and we can recognize if it was the added group that matched and not the original regexp.
The text was updated successfully, but these errors were encountered: