Created attachment 462161 [details] the minimal poc var str = "ab"; var pattern = /a/; str.split(pattern); print(RegExp.rightContext); //JSC: //V8:b
<rdar://problem/99865597>
Note: this is because String split is not using RegExpCache's performMatch (we are using RegExp::match instead). We should just use it instead.
Pull request: https://github.com/WebKit/WebKit/pull/26387
Committed 277559@main (c5b8a0234ef8): <https://commits.webkit.org/277559@main> Reviewed commits have been landed. Closing PR #26387 and removing active labels.