<?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>179001</bug_id>
          
          <creation_ts>2017-10-30 03:59:14 -0700</creation_ts>
          <short_desc>[ESNext] Implement support for BigInt</short_desc>
          <delta_ts>2020-11-30 22:37:11 -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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=210726</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>175359</dependson>
    
    <dependson>179000</dependson>
    
    <dependson>179002</dependson>
    
    <dependson>179003</dependson>
    
    <dependson>179004</dependson>
    
    <dependson>179005</dependson>
    
    <dependson>179006</dependson>
    
    <dependson>179900</dependson>
    
    <dependson>179901</dependson>
    
    <dependson>179902</dependson>
    
    <dependson>179903</dependson>
    
    <dependson>181144</dependson>
    
    <dependson>182216</dependson>
    
    <dependson>182470</dependson>
    
    <dependson>183721</dependson>
    
    <dependson>183996</dependson>
    
    <dependson>184327</dependson>
    
    <dependson>184474</dependson>
    
    <dependson>185379</dependson>
    
    <dependson>185929</dependson>
    
    <dependson>186173</dependson>
    
    <dependson>186228</dependson>
    
    <dependson>186229</dependson>
    
    <dependson>186230</dependson>
    
    <dependson>186231</dependson>
    
    <dependson>186232</dependson>
    
    <dependson>186233</dependson>
    
    <dependson>186235</dependson>
    
    <dependson>190798</dependson>
    
    <dependson>190799</dependson>
    
    <dependson>190800</dependson>
    
    <dependson>190836</dependson>
    
    <dependson>193240</dependson>
    
    <dependson>193241</dependson>
    
    <dependson>200745</dependson>
    
    <dependson>206182</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Caio Lima">ticaiolima</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashi009</cc>
    
    <cc>chi187</cc>
    
    <cc>darin</cc>
    
    <cc>daytonlowell</cc>
    
    <cc>fred.wang</cc>
    
    <cc>guijemont</cc>
    
    <cc>john</cc>
    
    <cc>robin</cc>
    
    <cc>sffc</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1365980</commentid>
    <comment_count>0</comment_count>
    <who name="Caio Lima">ticaiolima</who>
    <bug_when>2017-10-30 03:59:14 -0700</bug_when>
    <thetext>It is an umbrella bug to keep track of BigInt work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1635772</commentid>
    <comment_count>1</comment_count>
    <who name="Shane Carr">sffc</who>
    <bug_when>2020-03-30 15:12:19 -0700</bug_when>
    <thetext>Also: https://bugs.webkit.org/show_bug.cgi?id=209782</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710442</commentid>
    <comment_count>2</comment_count>
    <who name="John Leidegren">john</who>
    <bug_when>2020-11-28 12:46:34 -0800</bug_when>
    <thetext>I would like to add to this that BigInts don&apos;t appear to work as keys in ES Collections. I just took Safari 14 for a spin and ran into the most bizzare bugs where I could insert multiple entries with the same bigint keys in a Map.

For example:

const m = new Map()
m.set(1n, 123)
m.set(1n, 456)

console.log(m)
Map {1n =&gt; 123, 1n =&gt; 456}

get(1n)
undefined

etc.

Not sure what&apos;s up but it is broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710458</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-11-28 20:12:37 -0800</bug_when>
    <thetext>(In reply to John Leidegren from comment #2)
&gt; I would like to add to this that BigInts don&apos;t appear to work as keys in ES
&gt; Collections. I just took Safari 14 for a spin and ran into the most bizzare
&gt; bugs where I could insert multiple entries with the same bigint keys in a
&gt; Map.
&gt; 
&gt; For example:
&gt; 
&gt; const m = new Map()
&gt; m.set(1n, 123)
&gt; m.set(1n, 456)
&gt; 
&gt; console.log(m)
&gt; Map {1n =&gt; 123, 1n =&gt; 456}
&gt; 
&gt; get(1n)
&gt; undefined
&gt; 
&gt; etc.
&gt; 
&gt; Not sure what&apos;s up but it is broken.

This is fixed in https://trac.webkit.org/changeset/267373/webkit/. You can try it in STP 115 or later :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710538</commentid>
    <comment_count>4</comment_count>
    <who name="John Leidegren">john</who>
    <bug_when>2020-11-30 00:13:46 -0800</bug_when>
    <thetext>Great! When will this be available to the general public? I&apos;m unfamiliar with the release schedule of Safari but it looks to me that there will eventually be a Safari 14.1 release but that may take a while?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710828</commentid>
    <comment_count>5</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-11-30 15:41:53 -0800</bug_when>
    <thetext>(In reply to John Leidegren from comment #4)
&gt; Great! When will this be available to the general public? I&apos;m unfamiliar
&gt; with the release schedule of Safari but it looks to me that there will
&gt; eventually be a Safari 14.1 release but that may take a while?

We cannot comment on future Apple software releases. After the fix is released, we can comment on that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710939</commentid>
    <comment_count>6</comment_count>
    <who name="John Leidegren">john</who>
    <bug_when>2020-11-30 22:37:11 -0800</bug_when>
    <thetext>Ok, thanks anyway for the information. I&apos;ll wait patiently.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>