☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-classes
/
test
/
fixtures
/
spec
/
this-not-allowed-before-super-in-derived-classes-3
/
exec.js
☽
☼
packages/babel-plugin-transform-classes/test/fixtures/spec/this-not-allowed-before-super-in-derived-classes-3/exec.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
class Bar {}
2
3
class Foo extends Bar {
4
constructor() {
5
const fn = () => this;
6
fn();
7
super();
8
}
9
}
10
11
expect(() => new Foo()).toThrow("this hasn't been initialised");