summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testStrict.js
blob: 583a2b065d01567a4fd4b3882b0feed089c04fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
function testStrict() {
    var n = 10, a = [];
    for (var i = 0; i < 10; ++i) {
        a[0] = (n === 10);
        a[1] = (n !== 10);
        a[2] = (n === null);
        a[3] = (n == null);
    }
    return a.join(",");
}
assertEq(testStrict(), "true,false,false,false");