[Webkit-unassigned] [Bug 151348] New: Nonstandard RegExp own properties do not observe invariability of nonwritable, nonconfigurable property
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 17 05:39:49 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=151348
Bug ID: 151348
Summary: Nonstandard RegExp own properties do not observe
invariability of nonwritable, nonconfigurable property
Classification: Unclassified
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: claude.pache at gmail.com
Testcase:
> Object.getOwnPropertyDescriptor(RegExp, 'lastMatch')
< {value: "", writable: false, enumerable: true, configurable: false}
> /a/.exec('a')
> Object.getOwnPropertyDescriptor(RegExp, 'lastMatch')
< {value: "a", writable: false, enumerable: true, configurable: false}
The value of the property changes even when it is marked as nonwritable and nonconfigurable.
This must not be the case; for reference, see:
http://www.ecma-international.org/ecma-262/6.0/#sec-invariants-of-the-essential-internal-methods
paragraph [[GetOwnProperty]] (P), third bullet
The best thing to do, here, is to use an accessor property.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151117/fba08dd7/attachment.html>
More information about the webkit-unassigned
mailing list