Bug 170807 - Object literal syntax creates extra (not-specified) properties
Summary: Object literal syntax creates extra (not-specified) properties
Status: RESOLVED DUPLICATE of bug 164412
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari 10
Hardware: iPhone / iPad iOS 10
: P2 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 09:32 PDT by Dominic Szablewski
Modified: 2017-04-13 14:29 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Szablewski 2017-04-13 09:32:01 PDT
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
Comment 1 Dominic Szablewski 2017-04-13 14:29:43 PDT

*** This bug has been marked as a duplicate of bug 164412 ***