X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/b37bf2e156556c589aea3e1f58a377f2b1189665..14957cd040308e3eeec43d26bae5d76da13fcd85:/tests/mozilla/ecma/Array/15.4.4.5-3.js diff --git a/tests/mozilla/ecma/Array/15.4.4.5-3.js b/tests/mozilla/ecma/Array/15.4.4.5-3.js index b27e063..47bbe5d 100644 --- a/tests/mozilla/ecma/Array/15.4.4.5-3.js +++ b/tests/mozilla/ecma/Array/15.4.4.5-3.js @@ -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++ ) {