<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [INTL] Implement Intl.NumberFormat.prototype.resolvedOptions ()"
   href="https://bugs.webkit.org/show_bug.cgi?id=147602#c30">Comment # 30</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [INTL] Implement Intl.NumberFormat.prototype.resolvedOptions ()"
   href="https://bugs.webkit.org/show_bug.cgi?id=147602">bug 147602</a>
              from <span class="vcard"><a class="email" href="mailto:sukolsak&#64;gmail.com" title="Sukolsak Sakshuwong &lt;sukolsak&#64;gmail.com&gt;"> <span class="fn">Sukolsak Sakshuwong</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=147602#c28">comment #28</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=270532&amp;action=diff" name="attach_270532" title="Patch">attachment 270532</a> <a href="attachment.cgi?id=270532&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=270532&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=270532&amp;action=review</a>
&gt; 
&gt; &gt; Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:103
&gt; &gt; +    return (currency[0] &lt;&lt; 16) + (currency[1] &lt;&lt; 8) + currency[2];
&gt; 
&gt; This will do the wrong thing if any characters are in the range 0x80-0xFF on
&gt; platforms where char is signed. Should we assert the three characters are
&gt; all ASCII?</span >

Done. Use isASCIIAlpha (as opposed to isASCII) to be consistent with the spec.

<span class="quote">&gt; &gt; Source/JavaScriptCore/runtime/IntlObject.cpp:241
&gt; &gt; +        if (!(doubleValue &gt;= static_cast&lt;double&gt;(minimum) &amp;&amp; doubleValue &lt;= static_cast&lt;double&gt;(maximum))) {
&gt; 
&gt; Are these static_cast necessary? Doesn’t the unsigned automatically get
&gt; promoted to a double without explicit conversion?</span >

Removed static_cast.

<span class="quote">&gt; &gt; Source/JavaScriptCore/runtime/IntlObject.cpp:242
&gt; &gt; +            state.vm().throwException(&amp;state, createRangeError(&amp;state, property.publicName() + ASCIILiteral(&quot; is out of range&quot;)));
&gt; 
&gt; I don’t think you need the ASCIILiteral here, and in fact I think that using
&gt; it makes the code slightly less efficient, causing it to allocate an
&gt; additional temporary string.</span >

Done. Need to add &quot;*&quot; in front of property.publicName().</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>