Logan Smyth 14584c218c Kill the "shadow-functions.js" internal plugin in favor of an explicit helper (#5677)
* Handle arrow function processing via shared API rather than default plugin.

* Fix a few small PR comments.

* Preserve existing spec arrow 'this' rewrites, and support spec in subclass constructors.
2017-05-05 13:27:18 -07:00

20 lines
375 B
JavaScript

let g = (() => {
var _ref = babelHelpers.asyncGenerator.wrap(function* () {
var _this = this;
() => this;
function f() {
() => this;
}
babelHelpers.asyncToGenerator(function* () {
_this;
yield 1;
});
yield babelHelpers.asyncGenerator.await(1);
});
return function g() {
return _ref.apply(this, arguments);
};
})();