tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

expression-short-circuit-compound-assignment.js (268B)


      1 // |reftest| skip-if(!xulRuntime.shell)
      2 
      3 function test() {
      4 
      5 assertExpr("(x ??= y)", aExpr("??=", ident("x"), ident("y")));
      6 assertExpr("(x ||= y)", aExpr("||=", ident("x"), ident("y")));
      7 assertExpr("(x &&= y)", aExpr("&&=", ident("x"), ident("y")));
      8 
      9 }
     10 
     11 runtest(test);