blob: 77edd59b80f6ede97e75d0b2d968236c712dd450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
load("test-common.js");
try {
let foo = 1;
false && (foo = 2);
assert(foo === 1);
foo = 1;
true || (foo = 2);
assert(foo === 1);
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}
|