Debian Codegraph @

packages/babel-plugin-transform-classes/test/fixtures/spec/this-not-allowed-before-super-in-derived-classes/exec.js

raw
1 class Bar {}
2
3 class Foo extends Bar {
4 constructor() {
5 this.foo = "bar";
6 super();
7 }
8 }
9
10 expect(() => new Foo()).toThrow();