tor-browser

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

regular.js (544B)


      1 // Copyright (C) 2017 Mozilla Corporation. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 author: Jeff Walden <jwalden+code@mit.edu>
      6 esid: sec-let-and-const-declarations
      7 description: >
      8  |await| is excluded from LexicalDeclaration by grammar parameter, in
      9  AsyncFunction.  Therefore |let| followed by |await| inside AsyncFunction is
     10  an ASI opportunity, and this code must parse without error.
     11 ---*/
     12 
     13 async function f() {
     14    let
     15    await 0;
     16 }
     17 
     18 reportCompare(true, f instanceof Function);