This commit is contained in:
shenjack 2024-03-17 19:06:59 +08:00
parent a5849fe3f1
commit fa869f7098
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -3343,7 +3343,7 @@
// _Future<0> _AsyncAwaitCompleter<0> // _Future<0> _AsyncAwaitCompleter<0>
return new P.i_(new P.U($.P, a.i("U<0>")), a.i("i_<0>")) return new P.i_(new P.U($.P, a.i("U<0>")), a.i("i_<0>"))
}, },
ak(a, b) { async_start_sync(a, b) {
a.$2(0, null) a.$2(0, null)
b.b = true b.b = true
return b.a return b.a
@ -3386,15 +3386,15 @@
}(a, 1) }(a, 1)
return $.P.ct(new P.lr(s)) return $.P.ct(new P.lr(s))
}, },
iQ(a, b) { async_error(a, b) {
var s = H.ls(a, "error", t.K) var s = H.ls(a, "error", t.K)
return new P.f3(s, b == null ? P.m2(a) : b) return new P.AsyncError(s, b == null ? P.async_error_default_stack_trace(a) : b)
}, },
m2(a) { async_error_default_stack_trace(a) {
var s var stack_trace
if (t.u.b(a)) { if (t.u.b(a)) {
s = a.gbz() stack_trace = a.gbz()
if (s != null) return s if (stack_trace != null) return stack_trace
} }
return C.G return C.G
}, },
@ -3412,7 +3412,7 @@
if ((s & 24) !== 0) { if ((s & 24) !== 0) {
r = b.bI() r = b.bI()
b.c1(a) b.c1(a)
P.cO(b, r) P.future_propagate_to_listeners(b, r)
} else { } else {
r = b.c r = b.c
b.a = b.a & 1 | 4 b.a = b.a & 1 | 4
@ -3420,26 +3420,26 @@
a.d3(r) a.d3(r)
} }
}, },
cO(a, b) { future_propagate_to_listeners(a, listeners) {
var s, r, q, p, o, n, m, l, k, j, i, h, g, f = {}, var s, r, q, p, o, n, m, l, k, j, i, result, g, f = {},
e = f.a = a e = f.a = a
for (s = t.h; !0;) { for (s = t.h; !0;) {
r = {} r = {}
q = e.a q = e.a
p = (q & 16) === 0 p = (q & 16) === 0
o = !p o = !p
if (b == null) { if (listeners == null) {
if (o && (q & 1) === 0) { if (o && (q & 1) === 0) {
e = e.c e = e.c
P.root_handle_uncaught_error(e.a, e.b) P.root_handle_uncaught_error(e.a, e.b)
} }
return return
} }
r.a = b r.a = listeners
n = b.a n = listeners.a
for (e = b; n != null; e = n, n = m) { for (e = listeners; n != null; e = n, n = m) {
e.a = null e.a = null
P.cO(f.a, e) P.future_propagate_to_listeners(f.a, e)
r.a = n r.a = n
m = n.a m = n.a
} }
@ -3476,36 +3476,36 @@
q = q.i("bl<2>").b(e) || !q.Q[1].b(e) q = q.i("bl<2>").b(e) || !q.Q[1].b(e)
} else q = !1 } else q = !1
if (q) { if (q) {
h = r.a.b result = r.a.b
if (e instanceof P.U) if (e instanceof P.U)
if ((e.a & 24) !== 0) { if ((e.a & 24) !== 0) {
g = h.c g = result.c
h.c = null result.c = null
b = h.bJ(g) listeners = result.bJ(g)
h.a = e.a & 30 | h.a & 1 result.a = e.a & 30 | result.a & 1
h.c = e.c result.c = e.c
f.a = e f.a = e
continue continue
} else P.mk(e, h) } else P.mk(e, result)
else h.cV(e) else result.cV(e)
return return
} }
} }
h = r.a.b result = r.a.b
g = h.c g = result.c
h.c = null result.c = null
b = h.bJ(g) listeners = result.bJ(g)
e = r.b e = r.b
q = r.c q = r.c
if (!e) { if (!e) {
h.a = 8 result.a = 8
h.c = q result.c = q
} else { } else {
h.a = h.a & 1 | 16 result.a = result.a & 1 | 16
h.c = q result.c = q
} }
f.a = h f.a = result
e = h e = result
} }
}, },
uz(a, b) { uz(a, b) {
@ -3666,7 +3666,7 @@
lr: function lr(a) { lr: function lr(a) {
this.a = a this.a = a
}, },
f3: function f3(a, b) { AsyncError: function f3(a, b) {
this.a = a this.a = a
this.b = b this.b = b
}, },
@ -4515,7 +4515,7 @@
return P.ai(o, r) return P.ai(o, r)
} }
}) })
return P.ak($async$iE, r) return P.async_start_sync($async$iE, r)
} }
}, },
S = { S = {
@ -5753,7 +5753,7 @@
return P.async_return(q, r) return P.async_return(q, r)
} }
}) })
return P.ak($async$c2, r) return P.async_start_sync($async$c2, r)
}, },
rT(a, b) { rT(a, b) {
var s = a.e, var s = a.e,
@ -7938,7 +7938,7 @@
return P.async_return(null, r) return P.async_return(null, r)
} }
}) })
return P.ak($async$jv, r) return P.async_start_sync($async$jv, r)
}, },
init_out(a) { // init? init_out(a) { // init?
var document_ = document, var document_ = document,
@ -9572,7 +9572,7 @@
}, },
cj(a, b) { cj(a, b) {
var s var s
if (b == null) b = P.m2(a) if (b == null) b = P.async_error_default_stack_trace(a)
s = this.a s = this.a
if (this.b) s.be(a, b) if (this.b) s.be(a, b)
else s.cT(a, b) else s.cT(a, b)
@ -9596,7 +9596,7 @@
}, },
$S: 61 $S: 61
} }
P.f3.prototype = { P.AsyncError.prototype = {
k(a) { k(a) {
return H.e(this.a) return H.e(this.a)
}, },
@ -9617,7 +9617,7 @@
H.ls(a, "error", t.K) H.ls(a, "error", t.K)
s = this.a s = this.a
if ((s.a & 30) !== 0) throw H.h(P.cd("Future already completed")) if ((s.a & 30) !== 0) throw H.h(P.cd("Future already completed"))
if (b == null) b = P.m2(a) if (b == null) b = P.async_error_default_stack_trace(a)
s.cT(a, b) s.cT(a, b)
}, },
dg(a) { dg(a) {
@ -9754,19 +9754,19 @@
r = s.bI() r = s.bI()
s.a = 8 s.a = 8
s.c = a s.c = a
P.cO(s, r) P.future_propagate_to_listeners(s, r)
}, },
c2(a) { c2(a) {
var s = this, var s = this,
r = s.bI() r = s.bI()
s.a = 8 s.a = 8
s.c = a s.c = a
P.cO(s, r) P.future_propagate_to_listeners(s, r)
}, },
be(a, b) { be(a, b) {
var s = this.bI() var s = this.bI()
this.ex(P.iQ(a, b)) this.ex(P.async_error(a, b))
P.cO(this, s) P.future_propagate_to_listeners(this, s)
}, },
cS(a) { cS(a) {
if (this.$ti.i("bl<1>").b(a)) { if (this.$ti.i("bl<1>").b(a)) {
@ -9798,13 +9798,13 @@
} }
P.kH.prototype = { P.kH.prototype = {
$0() { $0() {
P.cO(this.a, this.b) P.future_propagate_to_listeners(this.a, this.b)
}, },
$S: 0 $S: 0
} }
P.kO.prototype = { P.kO.prototype = {
$0() { $0() {
P.cO(this.b, this.a.a) P.future_propagate_to_listeners(this.b, this.a.a)
}, },
$S: 0 $S: 0
} }
@ -9870,7 +9870,7 @@
} else q = !1 } else q = !1
o = m.a o = m.a
if (q) o.c = m.b.a.c if (q) o.c = m.b.a.c
else o.c = P.iQ(s, r) else o.c = P.async_error(s, r)
o.b = !0 o.b = !0
return return
} }
@ -9908,7 +9908,7 @@
s = H.unwrap_Exception(o) s = H.unwrap_Exception(o)
r = H.get_trace_from_exception(o) r = H.get_trace_from_exception(o)
q = this.a q = this.a
q.c = P.iQ(s, r) q.c = P.async_error(s, r)
q.b = !0 q.b = !0
} }
}, },
@ -9932,7 +9932,7 @@
m = r m = r
l = k.b l = k.b
if (n == null ? m == null : n === m) l.c = p if (n == null ? m == null : n === m) l.c = p
else l.c = P.iQ(r, q) else l.c = P.async_error(r, q)
l.b = !0 l.b = !0
} }
}, },
@ -12291,7 +12291,7 @@
return P.async_return(q, r) return P.async_return(q, r)
} }
}) })
return P.ak($async$O, r) return P.async_start_sync($async$O, r)
}, },
ae(a, b) { ae(a, b) {
return this.dJ(0, b) return this.dJ(0, b)
@ -12346,7 +12346,7 @@
return P.async_return(null, r) return P.async_return(null, r)
} }
}) })
return P.ak($async$ae, r) return P.async_start_sync($async$ae, r)
} }
} }
L.iS.prototype = { L.iS.prototype = {
@ -12522,7 +12522,7 @@
return P.async_return(q, r) return P.async_return(q, r)
} }
}) })
return P.ak($async$O, r) return P.async_start_sync($async$O, r)
}, },
eS() { eS() {
var s, r = this, var s, r = this,
@ -12576,7 +12576,7 @@
return P.async_return(null, r) return P.async_return(null, r)
} }
}) })
return P.ak($async$ae, r) return P.async_start_sync($async$ae, r)
} }
} }
V.j_.prototype = { V.j_.prototype = {
@ -12753,7 +12753,7 @@
return P.async_return(q, r) return P.async_return(q, r)
} }
}) })
return P.ak($async$O, r) return P.async_start_sync($async$O, r)
}, },
ae(a, b) { ae(a, b) {
return this.dL(0, b) return this.dL(0, b)
@ -12982,7 +12982,7 @@
return P.async_return(q, async_completer) return P.async_return(q, async_completer)
} }
}) })
return P.ak($async$b4, async_completer) return P.async_start_sync($async$b4, async_completer)
}, },
ft(a) { ft(a) {
var s, r, q, p, obj = this var s, r, q, p, obj = this
@ -13221,7 +13221,7 @@
return P.async_return(null, r) return P.async_return(null, r)
} }
}) })
return P.ak($async$$0, r) return P.async_start_sync($async$$0, r)
}, },
$S: 40 $S: 40
} }
@ -16183,7 +16183,7 @@
return P.async_return(q, r) return P.async_return(q, r)
} }
}) })
return P.ak($async$bD, r) return P.async_start_sync($async$bD, r)
}, },
bE() { bE() {
var s = 0, var s = 0,
@ -16199,7 +16199,7 @@
return P.async_return(null, r) return P.async_return(null, r)
} }
}) })
return P.ak($async$bE, r) return P.async_start_sync($async$bE, r)
}, },
fz(a, b) { fz(a, b) {
var s, r = this, var s, r = this,
@ -16274,7 +16274,7 @@
return P.async_return(q, r) return P.async_return(q, r)
} }
}) })
return P.ak($async$O, r) return P.async_start_sync($async$O, r)
}, },
ae(a, b) { ae(a, b) {
return this.dM(0, b) return this.dM(0, b)
@ -16671,7 +16671,7 @@
return P.async_return(null, r) return P.async_return(null, r)
} }
}) })
return P.ak($async$cg, r) return P.async_start_sync($async$cg, r)
// 你别说, 这异步还真有效 // 你别说, 这异步还真有效
}, },
az() { az() {
@ -18546,7 +18546,7 @@
inherit = hunkHelpers.inherit, inherit = hunkHelpers.inherit,
inherit_may = hunkHelpers.inheritMany inherit_may = hunkHelpers.inheritMany
inherit(P.Object, null) inherit(P.Object, null)
inherit_may(P.Object, [H.Js_Const, J.Interceptor, J.ArrayIterator, P.Error, P.ev, P.L, H.cv, P.fv, H.du, H.hV, H.kh, H.jR, H.dt, H.eE, H.c_, P.aU, H.jK, H.fA, H.ct, H.ew, H.kz, H.bK, H.l3, H.Rti, H.function_parameters, H.iu, P.l8, P.i_, P.f3, P.i4, P.cN, P.U, P.i0, P.em, P.hO, P.hP, P.im, P.i1, P.i3, P.i7, P.ii, P.io, P.lf, P.eM, P.kV, P.ie, P.z, P.dY, P.fg, P.js, P.lc, P.lb, P.dq, P.c1, P.fM, P.el, P.kG, P.jm, P.N, P.iq, P.cH, W.j8, W.m5, W.cP, W.cr, W.dN, W.eD, W.is, W.dv, W.kE, W.l_, W.ix, P.l4, P.kw, P.eJ, P.jQ, P.kT, Y.dW, L.iR, V.iV, X.iW, S.fK, HtmlRenderer.fq, HtmlRenderer.jT, HtmlRenderer.ax, Sgls.a_, Sgls.n, T.x, T.u, T.dk, T.fo, T.b7, T.fr, T.bB, T.bm, T.aX, T.aq, T.bG, T.bL, T.fl]) inherit_may(P.Object, [H.Js_Const, J.Interceptor, J.ArrayIterator, P.Error, P.ev, P.L, H.cv, P.fv, H.du, H.hV, H.kh, H.jR, H.dt, H.eE, H.c_, P.aU, H.jK, H.fA, H.ct, H.ew, H.kz, H.bK, H.l3, H.Rti, H.function_parameters, H.iu, P.l8, P.i_, P.AsyncError, P.i4, P.cN, P.U, P.i0, P.em, P.hO, P.hP, P.im, P.i1, P.i3, P.i7, P.ii, P.io, P.lf, P.eM, P.kV, P.ie, P.z, P.dY, P.fg, P.js, P.lc, P.lb, P.dq, P.c1, P.fM, P.el, P.kG, P.jm, P.N, P.iq, P.cH, W.j8, W.m5, W.cP, W.cr, W.dN, W.eD, W.is, W.dv, W.kE, W.l_, W.ix, P.l4, P.kw, P.eJ, P.jQ, P.kT, Y.dW, L.iR, V.iV, X.iW, S.fK, HtmlRenderer.fq, HtmlRenderer.jT, HtmlRenderer.ax, Sgls.a_, Sgls.n, T.x, T.u, T.dk, T.fo, T.b7, T.fr, T.bB, T.bm, T.aX, T.aq, T.bG, T.bL, T.fl])
inherit_may(J.Interceptor, [J.JsBool, J.JsNull, J.bE, J.JsArray, J.dA, J.JsString, H.dJ, H.ab, W.fn, W.bX, W.fe, W.i6, W.bb, W.ja, W.jb, W.o, W.c4, W.jL, W.ig, W.il, W.iy, W.iA]) inherit_may(J.Interceptor, [J.JsBool, J.JsNull, J.bE, J.JsArray, J.dA, J.JsString, H.dJ, H.ab, W.fn, W.bX, W.fe, W.i6, W.bb, W.ja, W.jb, W.o, W.c4, W.jL, W.ig, W.il, W.iy, W.iA])
inherit_may(J.bE, [J.fO, J.bs, J.JavaScriptFunction]) inherit_may(J.bE, [J.fO, J.bs, J.JavaScriptFunction])
inherit(J.jG, J.JsArray) inherit(J.jG, J.JsArray)