aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/es6/wrapAsyncGenerator.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/es6/wrapAsyncGenerator.js')
-rw-r--r--node_modules/@babel/runtime/helpers/es6/wrapAsyncGenerator.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/es6/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/es6/wrapAsyncGenerator.js
new file mode 100644
index 00000000..6d6d9811
--- /dev/null
+++ b/node_modules/@babel/runtime/helpers/es6/wrapAsyncGenerator.js
@@ -0,0 +1,6 @@
+import AsyncGenerator from "./AsyncGenerator";
+export default function _wrapAsyncGenerator(fn) {
+ return function () {
+ return new AsyncGenerator(fn.apply(this, arguments));
+ };
+} \ No newline at end of file