tor-browser

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

head-lhs-cover-non-asnmt-trgt.js (869B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 description: Head's LeftHandSideExpression must be a simple assignment target
      7 info: |
      8    It is a Syntax Error if IsValidSimpleAssignmentTarget of
      9    LeftHandSideExpression is false.
     10 
     11    It is a Syntax Error if the LeftHandSideExpression is
     12    CoverParenthesizedExpressionAndArrowParameterList : ( Expression ) and
     13    Expression derives a production that would produce a Syntax Error according
     14    to these rules if that production is substituted for
     15    LeftHandSideExpression. This rule is recursively applied.
     16 esid: sec-for-in-and-for-of-statements-static-semantics-early-errors
     17 es6id: 13.7.5
     18 negative:
     19  phase: parse
     20  type: SyntaxError
     21 ---*/
     22 
     23 $DONOTEVALUATE();
     24 
     25 for ((this) in {}) {}