tor-browser

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

let-array-with-newline.js (580B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2017 André Bargull. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-for-in-and-for-of-statements
      7 description: >
      8  ExpressionStatement has a lookahead restriction for `let [`.
      9 info: |
     10  ExpressionStatement[Yield, Await] :
     11    [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
     12    Expression[+In, ?Yield, ?Await] ;
     13 negative:
     14  phase: parse
     15  type: SyntaxError
     16 flags: [noStrict]
     17 ---*/
     18 
     19 $DONOTEVALUATE();
     20 
     21 for (var x of []) let
     22 [a] = 0;