diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js')
| -rw-r--r-- | node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js new file mode 100644 index 00000000..11554f3d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js @@ -0,0 +1,9 @@ +var AsyncGenerator = require("./AsyncGenerator"); + +function _wrapAsyncGenerator(fn) { + return function () { + return new AsyncGenerator(fn.apply(this, arguments)); + }; +} + +module.exports = _wrapAsyncGenerator;
\ No newline at end of file |
