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

@@ -8,9 +8,9 @@ function (_Bar) {
babelHelpers.classCallCheck(this, Foo);
var t = () => babelHelpers.get(Foo.prototype.__proto__ || Object.getPrototypeOf(Foo.prototype), "test", babelHelpers.assertThisInitialized(_this)).call(_this);
var t = () => babelHelpers.get(babelHelpers.getPrototypeOf(Foo.prototype), "test", babelHelpers.assertThisInitialized(_this)).call(_this);
return _this = babelHelpers.possibleConstructorReturn(this, (Foo.__proto__ || Object.getPrototypeOf(Foo)).call(this));
return _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
}
return Foo;