Joel Denning d305419da6 Not depending on return value of super(). Fixes #9020. (#9060)
* Not depending on return value of super(). Fixes #9020.

* Feedback from nicolo-ribaudo

* Feedback -- fixing bad call to replaceWithMultiple
2018-12-04 21:50:17 +01:00

27 lines
376 B
JavaScript

function b() {
var _this = this;
var t = function (x) {
return _this.x + x;
};
}
class Foo extends function () {} {
constructor() {
var _this2;
var foo = function () {
return _this2;
};
if (true) {
console.log((super(), _this2 = this), foo());
} else {
super();
_this2 = this;
console.log(foo());
}
}
}