tor-browser

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

value-await-module-escaped.js (615B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2017 André Bargull. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-identifiers-static-semantics-early-errors
      7 description: >
      8  `await` is a reserved identifier in module code and may not be used as a label.
      9 info: |
     10  Identifier : IdentifierName but not ReservedWord
     11 
     12  It is a Syntax Error if the goal symbol of the syntactic grammar is Module and
     13  the StringValue of IdentifierName is "await".
     14 negative:
     15  phase: parse
     16  type: SyntaxError
     17 flags: [module]
     18 ---*/
     19 
     20 $DONOTEVALUATE();
     21 
     22 aw\u0061it: 1;