Bug 244839 - RegExp.rightContext differs between JSC and V8
Summary: RegExp.rightContext differs between JSC and V8
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-06 04:45 PDT by qbtly
Modified: 2024-04-16 11:14 PDT (History)
4 users (show)

See Also:


Attachments
the minimal poc (85 bytes, application/x-javascript)
2022-09-06 04:45 PDT, qbtly
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description qbtly 2022-09-06 04:45:03 PDT
Created attachment 462161 [details]
the minimal poc

var str = "ab";
var pattern = /a/;
str.split(pattern);
print(RegExp.rightContext);
//JSC: 
//V8:b
Comment 1 Radar WebKit Bug Importer 2022-09-13 04:45:20 PDT
<rdar://problem/99865597>
Comment 2 Yusuke Suzuki 2022-09-14 13:23:39 PDT
Note: this is because String split is not using RegExpCache's performMatch (we are using RegExp::match instead). We should just use it instead.
Comment 3 Sosuke Suzuki 2024-03-24 06:23:28 PDT
Pull request: https://github.com/WebKit/WebKit/pull/26387
Comment 4 EWS 2024-04-16 11:14:45 PDT
Committed 277559@main (c5b8a0234ef8): <https://commits.webkit.org/277559@main>

Reviewed commits have been landed. Closing PR #26387 and removing active labels.