tor-browser

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

regular.js (560B)


      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 AsyncFunction.  Therefore |let| followed by |await| inside AsyncFunction is an ASI opportunity, and this code must parse without error.
      9 flags: [noStrict]
     10 ---*/
     11 async function f() {
     12    let
     13    await 0;
     14 }
     15 
     16 assert.sameValue(true, f instanceof Function);