summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/reflect-parse/expression-short-circuit-compound-assignment.js
blob: abec4a18afc56add7bfbcee26910de75cadf8e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |reftest| skip-if(!xulRuntime.shell)

function test() {

assertExpr("(x ??= y)", aExpr("??=", ident("x"), ident("y")));
assertExpr("(x ||= y)", aExpr("||=", ident("x"), ident("y")));
assertExpr("(x &&= y)", aExpr("&&=", ident("x"), ident("y")));

}

runtest(test);