Bug 188407 - RegExp.exec returns wrong value with pattern "(?!(a)b)|ab"
Summary: RegExp.exec returns wrong value with pattern "(?!(a)b)|ab"
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-08 05:10 PDT by isol2
Modified: 2020-04-15 16:09 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description isol2 2018-08-08 05:10:34 PDT
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