Closed Bug 582392 Opened 14 years ago Closed 14 years ago

JM: jsreftest failure on ecma\Array\15.4.4.5-1.js

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dmandelin, Unassigned)

References

Details

dmandelin@DMANDELIN-PC /c/sources/moo/js/src/debug
$ python ../tests/jstests.py -j8 shell/js --args=-m 15.4.4.5-1 -so
c:\sources\moo\js\src\debug\shell\js -m -f shell.js -f ecma\shell.js -f ecma\Array\shell.js -f ./ecma\Array\15.4.4.5-1.js
    rc = 0, run time = 0.042000
begin test: ecma/Array/15.4.4.5-1.js
15.4.4.5-1 Array.prototype.sort(comparefn)
 PASSED! var A = new Array();  A.sort(); A.length = 0 expected: 0
 PASSED! var A = new Array( true );  A.sort(); A.length = 1 expected: 1
 PASSED! A[0].toString() = true expected: true
 PASSED! var A = new Array( true, false, new Boolean(true), new Boolean(false), 'true', 'false' );  A.sort(); A.length = 6 expected: 6
 FAILED! A[0].toString() = false expected: true
 PASSED! A[1].toString() = false expected: false
 FAILED! A[2].toString() = false expected: true
 FAILED! A[3].toString() = true expected: false
 PASSED! A[4].toString() = true expected: true
 FAILED! A[5].toString() = true expected: false
How did double comparison work? Syncing in OOL path was just wrong.

http://hg.mozilla.org/users/danderson_mozilla.com/moo/rev/c713300ee377
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.