tor-browser

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

reftest-error-syntaxerror.js (498B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2017 Mozilla Corporation. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 author: Jeff Walden <jwalden+code@mit.edu>
      7 esid: sec-let-and-const-declarations
      8 description: >
      9  Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration
     10  variable name.  Therefore ASI doesn't apply, and so the |0| where a |=| was
     11  expected is a syntax error.
     12 ---*/
     13 
     14 function f() {
     15    let
     16    await 0;
     17 }