tor-browser

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

lgcl-and-arguments-strict-strict.js (526B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2020 Rick Waldron. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 
      6 /*---
      7 esid: sec-assignment-operators
      8 description: >
      9    Strict Mode - SyntaxError is thrown if the identifier arguments
     10    appear as the LeftHandSideExpression of a Logical Assignment
     11    operator(&&=)
     12 flags: [onlyStrict]
     13 negative:
     14  phase: parse
     15  type: SyntaxError
     16 features: [logical-assignment-operators]
     17 ---*/
     18 $DONOTEVALUATE();
     19 
     20 arguments &&= 20;