<?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>25490</bug_id>
          
          <creation_ts>2009-04-30 13:14:04 -0700</creation_ts>
          <short_desc>ToNumber should ignore NBSP (\u00a0)</short_desc>
          <delta_ts>2010-07-12 14:33:22 -0700</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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://hexmen.com/tests/pushpop.html</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="Ash Searle">ash.searle</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119506</commentid>
    <comment_count>0</comment_count>
    <who name="Ash Searle">ash.searle</who>
    <bug_when>2009-04-30 13:14:04 -0700</bug_when>
    <thetext>This bug in ToNumber is the only reason WebKit fails a couple of array push/pop tests at the given URL. 

For a minimal test-case - do an unsigned right-shift as below.  Every case should result in 3, but we get an answer of 0 when there&apos;s a non-breaking space:
&apos;\u0009 3&apos; &gt;&gt;&gt; 0; /* tab */
&apos;\u0020 3&apos; &gt;&gt;&gt; 0; /* space */ 
&apos;\u00a0 3&apos; &gt;&gt;&gt; 0; /* nbsp - fail! */

(see Section 9.3.1 of the EcmaScript 3rd edition spec for full list of white-space characters)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250061</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-07-12 14:33:22 -0700</bug_when>
    <thetext>Committed r63120: &lt;http://trac.webkit.org/changeset/63120&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>