tor-browser

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

class-name-ident-await.js (435B)


      1 // Copyright (C) 2018 André Bargull. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-class-definitions
      6 description: >
      7  `await` is a valid class-name identifier.
      8 info: |
      9  12.1.1 Static Semantics: Early Errors
     10 
     11  IdentifierReference : yield
     12 
     13  It is a Syntax Error if the goal symbol of the syntactic grammar is Module.
     14 ---*/
     15 
     16 var C = class await {};
     17 
     18 reportCompare(0, 0);