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

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: 765 bytes
Line 
1import OverloadYield from "./OverloadYield.js";
2function _asyncGeneratorDelegate(t) {
3 var e = {},
4 n = !1;
5 function pump(e, r) {
6 return n = !0, r = new Promise(function (n) {
7 n(t[e](r));
8 }), {
9 done: !1,
10 value: new OverloadYield(r, 1)
11 };
12 }
13 return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () {
14 return this;
15 }, e.next = function (t) {
16 return n ? (n = !1, t) : pump("next", t);
17 }, "function" == typeof t["throw"] && (e["throw"] = function (t) {
18 if (n) throw n = !1, t;
19 return pump("throw", t);
20 }), "function" == typeof t["return"] && (e["return"] = function (t) {
21 return n ? (n = !1, t) : pump("return", t);
22 }), e;
23}
24export { _asyncGeneratorDelegate as default };
Note: See TracBrowser for help on using the repository browser.