tor-browser

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

multi-header.js (567B)


      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  Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration variable name.  Therefore ASI doesn't apply, and so the |0| where a |=| was expected is a syntax error.
      9 negative:
     10  phase: early
     11  type: SyntaxError
     12 flags: [module]
     13 features: [Temporal]
     14 info: |
     15  foo bar  baz
     16 ---*/
     17 function f() {
     18    let
     19    await 0;
     20 }