Bug 170807
| Summary: | Object literal syntax creates extra (not-specified) properties | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dominic Szablewski <dominic.szablewski> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Critical | ||
| Priority: | P2 | ||
| Version: | Safari 10 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 10 | ||
Dominic Szablewski
var obj = {"512":1.0, "1024":2.0};
console.log(obj); // {0: NaN, 1: NaN, 2: NaN, 3: NaN, 4: NaN, 5: NaN, 6: NaN, 7: NaN, 8: NaN, 9: NaN, …}
Tested on iOS 10.3.1
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Dominic Szablewski
*** This bug has been marked as a duplicate of bug 164412 ***