source: imaps-frontend/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 628 bytes
Line 
1function asyncGeneratorStep(n, t, e, r, o, a, c) {
2 try {
3 var i = n[a](c),
4 u = i.value;
5 } catch (n) {
6 return void e(n);
7 }
8 i.done ? t(u) : Promise.resolve(u).then(r, o);
9}
10function _asyncToGenerator(n) {
11 return function () {
12 var t = this,
13 e = arguments;
14 return new Promise(function (r, o) {
15 var a = n.apply(t, e);
16 function _next(n) {
17 asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
18 }
19 function _throw(n) {
20 asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
21 }
22 _next(void 0);
23 });
24 };
25}
26export { _asyncToGenerator as default };
Note: See TracBrowser for help on using the repository browser.