summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/tests/mozilla/ecma/Array/15.4.4.5-3.js
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/tests/mozilla/ecma/Array/15.4.4.5-3.js')
-rw-r--r--JavaScriptCore/tests/mozilla/ecma/Array/15.4.4.5-3.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/JavaScriptCore/tests/mozilla/ecma/Array/15.4.4.5-3.js b/JavaScriptCore/tests/mozilla/ecma/Array/15.4.4.5-3.js
index b27e063..47bbe5d 100644
--- a/JavaScriptCore/tests/mozilla/ecma/Array/15.4.4.5-3.js
+++ b/JavaScriptCore/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++ ) {