tor-browser

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

this.js (710B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2023 Veera Sivarajan. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-update-expressions-static-semantics-early-errors
      7 description: >
      8  It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple. (this)
      9 info: |
     10  sec-static-semantics-assignmenttargettype
     11 
     12    PrimaryExpression: this 
     13 
     14    Return invalid.
     15 
     16  sec-update-expressions-static-semantics-early-errors
     17 
     18    UpdateExpression: ++ UnaryExpression 
     19 
     20    It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple.
     21 negative:
     22  phase: parse
     23  type: SyntaxError
     24 ---*/
     25 
     26 $DONOTEVALUATE();
     27 
     28 ++this;