1 | import _Object$create from "core-js/library/fn/object/create.js";
|
2 | import _Promise from "core-js/library/fn/promise.js";
|
3 | function dispose_SuppressedError(r, e) {
|
4 | return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) {
|
5 | this.suppressed = e, this.error = r, this.stack = Error().stack;
|
6 | }, dispose_SuppressedError.prototype = _Object$create(Error.prototype, {
|
7 | constructor: {
|
8 | value: dispose_SuppressedError,
|
9 | writable: !0,
|
10 | configurable: !0
|
11 | }
|
12 | })), new dispose_SuppressedError(r, e);
|
13 | }
|
14 | export default function _dispose(r, e, s) {
|
15 | function next() {
|
16 | for (; r.length > 0;) try {
|
17 | var o = r.pop(),
|
18 | p = o.d.call(o.v);
|
19 | if (o.a) return _Promise.resolve(p).then(next, err);
|
20 | } catch (r) {
|
21 | return err(r);
|
22 | }
|
23 | if (s) throw e;
|
24 | }
|
25 | function err(r) {
|
26 | return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next();
|
27 | }
|
28 | return next();
|
29 | } |
\ | No newline at end of file |