tor-browser

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

static-init-invalid-super-call.js (553B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2021 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-class-definitions-static-semantics-early-errors
      6 description: Block cannot contain SuperCall
      7 info: |
      8  ClassStaticBlock : static { ClassStaticBlockBody }
      9 
     10  - It is a Syntax Error if HasDirectSuper of ClassStaticBlock is true.
     11 negative:
     12  phase: parse
     13  type: SyntaxError
     14 features: [class-static-block]
     15 ---*/
     16 
     17 $DONOTEVALUATE();
     18 
     19 class C {
     20  static {
     21    super();
     22  }
     23 }