<?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>134920</bug_id>
          
          <creation_ts>2014-07-15 00:09:31 -0700</creation_ts>
          <short_desc>JSON.parse gives incorrect result for &quot;-0 &quot;.</short_desc>
          <delta_ts>2019-09-24 17:30:47 -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>420+</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>OS X 10.7</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="Lasse R.H. Nielsen">lrn</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>ggaren</cc>
    
    <cc>ross.kirsling</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1022424</commentid>
    <comment_count>0</comment_count>
    <who name="Lasse R.H. Nielsen">lrn</who>
    <bug_when>2014-07-15 00:09:31 -0700</bug_when>
    <thetext>JSON.parse(&quot;-0 &quot;) should give the same result as JSON.parse(&quot;-0&quot;), but where the latter correctly returns -0.0, the former returns positive 0.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1543544</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2019-06-10 17:53:33 -0700</bug_when>
    <thetext>This is fixed as of rev. 246299: negative zero surrounded by whitespace is parsed correctly.
To prevent regressions, I am adding a few test cases to Test262: https://github.com/tc39/test262/pull/2196 (file: text-negative-zero.js)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>