add property method assignment wrapper generator template
This commit is contained in:
parent
481ea12999
commit
799445c745
@ -0,0 +1,11 @@
|
|||||||
|
(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)
|
||||||
Loading…
x
Reference in New Issue
Block a user