summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testMatchAsCondition.js
blob: 8cb429f0c56136e913b435e07de095bf40d56929 (plain)
1
2
3
4
5
6
7
8
function testMatchAsCondition() {
    var a = ['0', '0', '0', '0'];
    var r = /0/;
    "x".q;
    for (var z = 0; z < 4; z++)
        a[z].match(r) ? 1 : 2;
}
testMatchAsCondition();