tor-browser

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

invalid-assignment-target-update-expr.js (765B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2018 André Bargull. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-static-semantics-static-semantics-assignmenttargettype
      7 description: >
      8  import.meta is not a valid assignment target.
      9 info: |
     10  Static Semantics: AssignmentTargetType
     11 
     12    ImportMeta:
     13      import.meta
     14 
     15    Return invalid.
     16 
     17  12.4.1 Static Semantics: Early Errors
     18 
     19    UpdateExpression:
     20      LeftHandSideExpression++
     21      LeftHandSideExpression--
     22 
     23    It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is invalid or strict.
     24 flags: [module]
     25 negative:
     26  phase: parse
     27  type: SyntaxError
     28 features: [import.meta]
     29 ---*/
     30 
     31 $DONOTEVALUATE();
     32 
     33 import.meta++;