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

@@ -2,6 +2,6 @@ var _obj;
var o = _obj = {
m: function () {
return babelHelpers.get(_obj.__proto__ || Object.getPrototypeOf(_obj), "x", this);
return babelHelpers.get(babelHelpers.getPrototypeOf(_obj), "x", this);
}
};

View File

@@ -10,6 +10,6 @@ foo = _obj = {
bar: function () {
var _ref;
return _ref = _get(_obj.__proto__ || Object.getPrototypeOf(_obj), "baz", this), _set(_obj.__proto__ || Object.getPrototypeOf(_obj), "baz", _ref ** 12, this);
return _ref = _get(_getPrototypeOf(_obj), "baz", this), _set(_getPrototypeOf(_obj), "baz", _ref ** 12, this);
}
};