[Webkit-unassigned] [Bug 188407] New: RegExp.exec returns wrong value with pattern "(?!(a)b)|ab"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 8 05:10:34 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188407
Bug ID: 188407
Summary: RegExp.exec returns wrong value with pattern
"(?!(a)b)|ab"
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: isol2 at cin.ufpe.br
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180808/b77a3d9b/attachment.html>
More information about the webkit-unassigned
mailing list