summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/undefined-warning-bug1274499.js
blob: d8e48323b8fa60a4c302d2a79caf7694a3893364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
options("strict", "werror");

var o = {};
var failureCode = 0;

try {
    // Don't throw here.
    if (o.a || o.b)
        failureCode = 1;
} catch (e) {
    failureCode = 2
}
assertEq(failureCode, 0);