Bug 88402
Summary: | Assigning to a static property should not change attributes | ||
---|---|---|---|
Product: | WebKit | Reporter: | Gavin Barraclough <barraclough> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Gavin Barraclough
Overwriting a static property will create a new entry in the property map, which should inherit the attributes from the static table, but does not.
E.g.
Math.sin = 42;
alert(Object.keys(Math.sin))
'sin' is a non-enumerable property of the math object, assigning to it should not make it enumerable.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |