]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - tests/mozilla/ecma/Array/15.4.4.5-3.js
JavaScriptCore-903.tar.gz
[apple/javascriptcore.git] / tests / mozilla / ecma / Array / 15.4.4.5-3.js
index b27e063650174c3a6d4f7b35a38cbd2c6a1d4eb8..47bbe5d4b26404cf40ecbba35e92d43dee92953c 100644 (file)
@@ -147,7 +147,7 @@ function realsort( x, y ) {
     return ( x.valueOf() == y.valueOf() ? 0 : ( x.valueOf() > y.valueOf() ? 1 : -1 ) );
 }
 function comparefn3( x, y ) {
-    return ( x == y ? 0 : ( x > y ? 1: -1 ) );
+  return ( +x == +y ? 0 : ( x > y ? 1 : -1 ) );
 }
 function clone( source, target ) {
     for (i = 0; i < source.length; i++ ) {