tor-browser

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

head-lhs-invalid-asnmt-ptrn-obj.js (698B)


      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: Invalid destructuring assignment pattern (object literal)
      7 info: |
      8    It is a Syntax Error if LeftHandSideExpression is either an ObjectLiteral
      9    or an ArrayLiteral and if the lexical token sequence matched by
     10    LeftHandSideExpression cannot be parsed with no tokens left over using
     11    AssignmentPattern as the goal symbol.
     12 esid: sec-for-in-and-for-of-statements-static-semantics-early-errors
     13 es6id: 13.7.5
     14 negative:
     15  phase: parse
     16  type: SyntaxError
     17 ---*/
     18 
     19 $DONOTEVALUATE();
     20 
     21 for ({ m() {} } of []) {}