[Webkit-unassigned] [Bug 191730] New: RegExpObject's collectMatches should not be using JSArray::push to fill in its match results.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 15 17:58:03 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=191730
Bug ID: 191730
Summary: RegExpObject's collectMatches should not be using
JSArray::push to fill in its match results.
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mark.lam at apple.com
According to the spec https://www.ecma-international.org/ecma-262/9.0/index.html#sec-regexp.prototype-@@match, the RegExp match results are filling in using the spec's CreateDataProperty() which does not consult the prototype for setters. JSArray:push() consults the prototype for setters. We should be using putDirectIndex() instead.
<rdar://problem/46048517>
--
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/20181116/2f49af69/attachment.html>
More information about the webkit-unassigned
mailing list