Bug 88403
| Summary: | Property delete should not hide static custom getter/setter properties | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Gavin Barraclough <barraclough> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Gavin Barraclough
E.g.
alert(Object.getOwnPropertyNames(Number));
Number.foo = 42;
delete Number.foo;
alert(Object.getOwnPropertyNames(Number));
The problem is that getOwnPropertyNames() won't call getClassPropertyNames() if staticFunctionsReified() returns true. However this should only cause Functions in the static tables to be skipped - not custom getter/setter properties (which are not reified to the structure).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Gavin Barraclough
Ooops, dupe!
*** This bug has been marked as a duplicate of bug 86461 ***