<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>186691</bug_id>
          
          <creation_ts>2018-06-15 13:40:36 -0700</creation_ts>
          <short_desc>[[OwnPropertyKeys]] order with large integer index keys up to 2 ** 53 - 1</short_desc>
          <delta_ts>2020-11-29 11:51:19 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leo Balter">leo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1433531</commentid>
    <comment_count>0</comment_count>
    <who name="Leo Balter">leo</who>
    <bug_when>2018-06-15 13:40:36 -0700</bug_when>
    <thetext>From https://tc39.github.io/ecma262/#sec-object-type

&gt; 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 &lt; 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 =&gt; console.log(k));
```


prints:

```
&quot;1&quot;
&quot;12345678900&quot;
&quot;b&quot;
&quot;a&quot;
&quot;9007199254740991&quot;
&quot;12345678901&quot;
```

It should print:

```
&quot;1&quot;
&quot;12345678900&quot;
&quot;12345678901&quot;
&quot;9007199254740991&quot;
&quot;b&quot;
&quot;a&quot;
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710490</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2020-11-29 11:51:19 -0800</bug_when>
    <thetext>(In reply to Leo Balter from comment #0)
&gt; https://github.com/tc39/test262/pull/1580
&gt; 
&gt; Current behavior is not taking values from 2 ** 32 and up as integer index.

https://github.com/tc39/ecma262/pull/1242 replaced &quot;integer index&quot; with &quot;array index&quot;, aligning the spec with web reality.

(In reply to Leo Balter from comment #0)
&gt; &quot;1&quot;
&gt; &quot;12345678900&quot;
&gt; &quot;b&quot;
&gt; &quot;a&quot;
&gt; &quot;9007199254740991&quot;
&gt; &quot;12345678901&quot;

is now printed by JSC, V8, and SpiderMonkey as per updated spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>