Bug 188407
| Summary: | RegExp.exec returns wrong value with pattern "(?!(a)b)|ab" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | isol2 |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | fpizlo, iKonnyaku40, msaboff, ysuzuki |
| Priority: | P2 | ||
| Version: | Safari 11 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=210576 | ||
isol2
OS: Ubuntu 16.04 x64
jsc build version: 234689
Steps to reproduce:
t = new RegExp ("(?!(a)b)|ab").exec("ab");
print(t[0] == "ab");
print(t[1] == undefined);
print(t)
Actual results:
true
false
ab,a
Expected results:
true
true
ab,
V8, SpiderMonkey and Chakra works as expected.
cinfuzz
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Keita Nonaka
I cannot reproduce it with the latest JSC (b2323ec6eaf613835bbaf8964d6e6d53b5310653). I think this is resolved already.
Yusuke Suzuki
Yup. It seems that this is already fixed in ToT.