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
As a workaround, I changed my instance to var so I can re-assign the returned value to the same variable (rather than mutating). I then noticed at least one more inconsistency with the JVM object that triggered IllegalStateException. I'll file a separate bug later.
Matcher.region() is returning an instance of a new matcher with the given start and end position:
scala-js/javalib/src/main/scala/java/util/regex/Matcher.scala
Lines 228 to 229 in 92737aa
The behavior on the JVM is that the region is updated in-place: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#region(int,%20int)
The text was updated successfully, but these errors were encountered: