Use getProto and setProto helpers (#7675)

Depends on #7674.
This commit is contained in:
Justin Ridgewell
2018-04-06 02:54:08 +01:00
committed by GitHub
parent e9ed0f5f21
commit 450a1678f2
64 changed files with 117 additions and 126 deletions

View File

@@ -12,7 +12,7 @@ function (_Bar) {
var _this;
babelHelpers.classCallCheck(this, Foo);
_this = babelHelpers.possibleConstructorReturn(this, (Foo.__proto__ || Object.getPrototypeOf(Foo)).call(this));
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
_this.state = "test";
return _this;
}