<?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>246646</bug_id>
          
          <creation_ts>2022-10-17 13:08:18 -0700</creation_ts>
          <short_desc>[JSC] Intl.NumberFormat ignores maximumFractionDigits with compact notation (both currency and decimal)</short_desc>
          <delta_ts>2022-12-18 23:41:30 -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>Safari 16</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=147605</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Max Starets">mstarets</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>cunha.pedro.m</cc>
    
    <cc>karlcow</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1906242</commentid>
    <comment_count>0</comment_count>
    <who name="Max Starets">mstarets</who>
    <bug_when>2022-10-17 13:08:18 -0700</bug_when>
    <thetext>To reproduce, try the following:
new Intl.NumberFormat(&apos;en-US&apos;, {style: &apos;currency&apos;, currency: &apos;USD&apos;, notation: &apos;compact&apos;, maximumFractionDigits: 2, compactDisplay: &apos;long&apos;}).format(97896)
Safari output: &quot;$98K&quot;
Firefox and Chrome output: &quot;$97.90K&quot;

new Intl.NumberFormat(&apos;en-US&apos;, {style: &apos;decimal&apos;, notation: &apos;compact&apos;, maximumFractionDigits: 2, compactDisplay: &apos;long&apos;}).format(97896)
Safari output: &quot;98 thousand&quot; 
Firefox and Chrome output: &quot;97.9 thousand&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906386</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-10-17 22:28:10 -0700</bug_when>
    <thetext>There is also no tests on WPT covering this: Intl.NumberFormat
https://wpt.fyi/results/?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=maximumfractiondigits</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906506</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-10-18 10:10:48 -0700</bug_when>
    <thetext>(In reply to Karl Dubost from comment #1)
&gt; There is also no tests on WPT covering this: Intl.NumberFormat
&gt; https://wpt.fyi/results/
&gt; ?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=maximumfractiondigits

Intl.NumberFormat is not web API. It is test262&apos;s job to cover that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906517</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-10-18 10:24:23 -0700</bug_when>
    <thetext>We should apply the spec side change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906519</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-18 10:28:31 -0700</bug_when>
    <thetext>&lt;rdar://problem/101298045&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906522</commentid>
    <comment_count>5</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-10-18 10:34:40 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5501</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906561</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-10-18 12:32:00 -0700</bug_when>
    <thetext>Committed 255691@main (9c113c3fb2ab): &lt;https://commits.webkit.org/255691@main&gt;

Reviewed commits have been landed. Closing PR #5501 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920429</commentid>
    <comment_count>7</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-12-18 23:41:30 -0800</bug_when>
    <thetext>*** Bug 249231 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>