[Webkit-unassigned] [Bug 186691] New: [[OwnPropertyKeys]] order with large integer index keys up to 2 ** 53 - 1
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 15 13:40:36 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=186691
Bug ID: 186691
Summary: [[OwnPropertyKeys]] order with large integer index
keys up to 2 ** 53 - 1
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: leonardo.balter at gmail.com
>From https://tc39.github.io/ecma262/#sec-object-type
> An integer index is a String-valued property key that is a canonical numeric String (see 7.1.16) and whose numeric value is either +0 or a positive integer ≤ 2**53-1. An array index is an integer index whose numeric value i is in the range +0 ≤ i < 2**32-1.
https://github.com/tc39/test262/pull/1580
Current behavior is not taking values from 2 ** 32 and up as integer index.
```
var o1 = {
12345678900: true,
b: true,
1: true,
a: true,
[Number.MAX_SAFE_INTEGER]: true,
12345678901: true,
};
var result = Object.getOwnPropertyNames(o1);
result.forEach(k => console.log(k));
```
prints:
```
"1"
"12345678900"
"b"
"a"
"9007199254740991"
"12345678901"
```
It should print:
```
"1"
"12345678900"
"12345678901"
"9007199254740991"
"b"
"a"
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180615/6f4c6fe2/attachment.html>
More information about the webkit-unassigned
mailing list