summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testLogicalNotNaN.js
blob: 6bb0251e2845872a260864fc65c292986261aa3a (plain)
1
2
3
4
5
6
7
8
function testLogicalNotNaN() {
    var i = 0;
    var a = new Array(5);
    while (i < a.length)
        a[i++] = !NaN;
    return a.join();
}
assertEq(testLogicalNotNaN(), "true,true,true,true,true");