tor-browser

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

head-lhs-async-invalid.js (433B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2021 Kevin Gibbons. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 description: leading `async` token in for-of LHS
      7 info: |
      8  The `async` token is disallowed in the LHS when followed by `of`
      9 esid: sec-for-in-and-for-of-statements
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 ---*/
     14 
     15 $DONOTEVALUATE();
     16 
     17 var async;
     18 for (async of [1]) ;