| Summary: | RegExp.rightContext differs between JSC and V8 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | qbtly <qbtly201> | ||||
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | mark.lam, msaboff, webkit-bug-importer, ysuzuki | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Local Build | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
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. |
Created attachment 462161 [details] the minimal poc var str = "ab"; var pattern = /a/; str.split(pattern); print(RegExp.rightContext); //JSC: //V8:b