bublejs / bublejs/buble

Must call super constructor in derived class before accessing 'this' or returning from derived constructor

Open
#265 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
874
Forks
62
PR merge metrics
No merged PRs in 30d

Description

```js
class Base {}

class Test extends Base {
constructor() {
super();
() => {
this.aa = 1;
}
}
}
```

```shell
$ npx buble test.js -n classes
```
```js
class Base {}

class A extends Base {
constructor() {
var this$1 = this;

super();
!function() {
this$1.aa = 1;
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.