main
Last change
on this file 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
|
Rev | Line | |
---|
[d565449] | 1 | function 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 | }
|
---|
| 10 | function _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 | }
|
---|
| 26 | export { _asyncToGenerator as default }; |
---|
Note:
See
TracBrowser
for help on using the repository browser.