rewrite this in shadowed functions inside native derived class constructors - fixes #1340
This commit is contained in:
@@ -8,3 +8,10 @@ class Bar extends Array {
|
||||
this.foo = "bar";
|
||||
}
|
||||
}
|
||||
|
||||
class Baz extends Array {
|
||||
constructor() {
|
||||
super();
|
||||
(() => this)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,3 +33,21 @@ var Bar = (function (_Array2) {
|
||||
babelHelpers.inherits(Bar, _Array2);
|
||||
return Bar;
|
||||
})(Array);
|
||||
|
||||
var Baz = (function (_Array3) {
|
||||
function Baz() {
|
||||
babelHelpers.classCallCheck(this, Baz);
|
||||
|
||||
var _this3 = new _Array3();
|
||||
|
||||
_this3.__proto__ = Baz.prototype;
|
||||
|
||||
(function () {
|
||||
return _this3;
|
||||
});
|
||||
return _this3;
|
||||
}
|
||||
|
||||
babelHelpers.inherits(Baz, _Array3);
|
||||
return Baz;
|
||||
})(Array);
|
||||
|
||||
Reference in New Issue
Block a user