babel/lib/6to5/transformation/templates/property-method-assignment-wrapper-generator.js
2015-02-08 20:23:22 +11:00

12 lines
250 B
JavaScript

(function (FUNCTION_KEY) {
var WRAPPER_KEY = function* FUNCTION_ID() {
return yield* FUNCTION_KEY.apply(this, arguments);
};
WRAPPER_KEY.toString = function () {
return FUNCTION_KEY.toString();
};
return WRAPPER_KEY;
})(FUNCTION)