tor-browser

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

value-await-module.js (534B)


      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  LabelIdentifier : await
     11 
     12  It is a Syntax Error if the goal symbol of the syntactic grammar is Module.
     13 negative:
     14  phase: parse
     15  type: SyntaxError
     16 flags: [module]
     17 ---*/
     18 
     19 $DONOTEVALUATE();
     20 
     21 await: 1;