<?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>139679</bug_id>
          
          <creation_ts>2014-12-16 06:49:34 -0800</creation_ts>
          <short_desc>0&lt;=NaN return TRUE if disabling JIT</short_desc>
          <delta_ts>2015-12-10 01:13:33 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Wang">mwang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>matthew_hanson</cc>
    
    <cc>nwaschbu</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1055971</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Wang">mwang</who>
    <bug_when>2014-12-16 06:49:34 -0800</bug_when>
    <thetext>If --enable-jit=yes, &apos;0&lt;=NaN&apos; returns false.
If --enable-jit=no, &apos;0&lt;=NaN&apos; returns true. it is not corrected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056374</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-12-17 10:53:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/19280919&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056593</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2014-12-17 16:41:17 -0800</bug_when>
    <thetext>Can you be more specific? 

I tried this:

[redacted]&gt; JSC_useJIT=0 DYLD_FRAMEWORK_PATH=./Contents/Frameworks/ ./Contents/Resources/jsc
&gt;&gt;&gt; 0&lt;=NaN
false</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056647</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Wang">mwang</who>
    <bug_when>2014-12-17 17:38:37 -0800</bug_when>
    <thetext>I am using WebKitGTK2.0.1 which didn&apos;t change the JavascriptCore. 

My test script is:
&lt;script&gt;
    0 &lt;= NaN?console.log(&quot;TRUE&quot;):console.log(&quot;FALSE&quot;);
&lt;/script&gt;

OS: Linux.
Result:
If --enable-jit=yes, &quot;0 &lt;= NaN&quot; always is FALSE no matter if JIT is enabled by ENV


If --enable-jit=no, &quot;0 &lt;= NaN&quot; always is TRUE.

So, JIT must be disabled in the build configuration in order to reproduce this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056650</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Wang">mwang</who>
    <bug_when>2014-12-17 17:43:33 -0800</bug_when>
    <thetext>If disabling the JIT in the build configuration, the issue can reproduced. So It is reopened.

JSC_useJIT=0 can&apos;t reproduce this issue if --enable-jit=yes in the build configuration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1148099</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Wang">mwang</who>
    <bug_when>2015-12-10 01:13:33 -0800</bug_when>
    <thetext>In only a few versions of offlineasm/cloop.rb, &quot;isnan&quot; was used (not &quot;std::isnan&quot;).

This issue can&apos;t be reproduced if using &quot;std::isnan&quot;, so it is set to be &apos;WONTFIX&apos;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>