Compare commits

..

3 Commits

View File

@ -1026,7 +1026,7 @@ var A = {
} }
}(a) }(a)
}, },
m9(a, b) { JsNoSuchMethodError(a, b) {
var s = b == null, var s = b == null,
r = s ? null : b.method r = s ? null : b.method
return new H.fx(a, r, s ? null : b.receiver) return new H.fx(a, r, s ? null : b.receiver)
@ -1044,18 +1044,18 @@ var A = {
return err return err
}, },
_unwrapNonDartException(ex) { _unwrapNonDartException(ex) {
var s, r, q, t1, nsme, not_closure, null_call, null_literal_call, undef_call, undef_literal_call, null_property, undef_property, undef_literal_property, match, e = null var message, number, is_error_code, t1, nsme, not_closure, null_call, null_literal_call, undef_call, undef_literal_call, null_property, undef_property, undef_literal_property, match, e = null
if (!("message" in ex)) return ex if (!("message" in ex)) return ex
s = ex.message message = ex.message
if ("number" in ex && typeof ex.number == "number") { if ("number" in ex && typeof ex.number == "number") {
r = ex.number number = ex.number
q = r & 65535 is_error_code = number & 65535
if ((C.JsInt.am(r, 16) & 8191) === 10) switch (q) { if ((C.JsInt.am(number, 16) & 8191) === 10) switch (is_error_code) {
case 438: case 438:
return H.saveStackTrace(ex, H.m9(H.as_string(s) + " (Error " + q + ")", e)) return H.saveStackTrace(ex, H.JsNoSuchMethodError(H.as_string(message) + " (Error " + is_error_code + ")", e))
case 445: case 445:
case 5007: case 5007:
t1 = H.as_string(s) + " (Error " + q + ")" t1 = H.as_string(message) + " (Error " + is_error_code + ")"
return H.saveStackTrace(ex, new H.NullError(t1, e)) return H.saveStackTrace(ex, new H.NullError(t1, e))
} }
} }
@ -1070,29 +1070,29 @@ var A = {
$.rb() $.rb()
undef_property = $.rg() undef_property = $.rg()
undef_literal_property = $.rf() undef_literal_property = $.rf()
match = nsme.aH(s) match = nsme.aH(message)
if (match != null) return H.saveStackTrace(ex, H.m9(s, match)) if (match != null) return H.saveStackTrace(ex, H.JsNoSuchMethodError(message, match))
else { else {
match = not_closure.aH(s) match = not_closure.aH(message)
if (match != null) { if (match != null) {
match.method = "call" match.method = "call"
return H.saveStackTrace(ex, H.m9(s, match)) return H.saveStackTrace(ex, H.JsNoSuchMethodError(message, match))
} else { } else {
match = null_call.aH(s) match = null_call.aH(message)
if (match == null) { if (match == null) {
match = null_literal_call.aH(s) match = null_literal_call.aH(message)
if (match == null) { if (match == null) {
match = undef_call.aH(s) match = undef_call.aH(message)
if (match == null) { if (match == null) {
match = undef_literal_call.aH(s) match = undef_literal_call.aH(message)
if (match == null) { if (match == null) {
match = null_property.aH(s) match = null_property.aH(message)
if (match == null) { if (match == null) {
match = null_literal_call.aH(s) match = null_literal_call.aH(message)
if (match == null) { if (match == null) {
match = undef_property.aH(s) match = undef_property.aH(message)
if (match == null) { if (match == null) {
match = undef_literal_property.aH(s) match = undef_literal_property.aH(message)
t1 = match != null t1 = match != null
} else } else
t1 = true t1 = true
@ -1109,24 +1109,24 @@ var A = {
} else } else
t1 = true t1 = true
if (t1) { if (t1) {
return H.saveStackTrace(ex, new H.NullError(s, match == null ? e : match.method)) return H.saveStackTrace(ex, new H.NullError(message, match == null ? e : match.method))
} }
} }
} }
return H.saveStackTrace(ex, new H.hU(typeof s == "string" ? s : "")) return H.saveStackTrace(ex, new H.hU(typeof message == "string" ? message : ""))
} }
if (ex instanceof RangeError) { if (ex instanceof RangeError) {
if (typeof s == "string" && s.indexOf("call stack") !== -1) return new P.el() if (typeof message == "string" && message.indexOf("call stack") !== -1) return new P.el()
s = function (b) { message = function (b) {
try { try {
return String(b) return String(b)
} catch (d) { } } catch (d) { }
return null return null
}(ex) }(ex)
return H.saveStackTrace(ex, new P.aS(false, e, e, typeof s == "string" ? s.replace(/^RangeError:\s*/, "") : s)) return H.saveStackTrace(ex, new P.aS(false, e, e, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message))
} }
if (typeof InternalError == "function" && ex instanceof InternalError) if (typeof InternalError == "function" && ex instanceof InternalError)
if (typeof s == "string" && s === "too much recursion") return new P.el() if (typeof message == "string" && message === "too much recursion") return new P.el()
return ex return ex
}, },
getTraceFromException(a) { getTraceFromException(a) {
@ -1307,7 +1307,7 @@ var A = {
q = "self" + H.as_string(r) q = "self" + H.as_string(r)
r = "return function(){var " + q + " = this." r = "return function(){var " + q + " = this."
p = $.dh p = $.dh
return new Function(r + (p == null ? $.dh = H.j3(n) : p) + ";return " + q + "." + H.as_string(a) + "();}")() return new Function(r + (p == null ? $.dh = H.BoundClosure_selfFieldName(n) : p) + ";return " + q + "." + H.as_string(a) + "();}")()
} }
o = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, s).join(",") o = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, s).join(",")
r = $.bk r = $.bk
@ -1315,7 +1315,7 @@ var A = {
o += H.as_string(r) o += H.as_string(r)
r = "return function(" + o + "){return this." r = "return function(" + o + "){return this."
p = $.dh p = $.dh
return new Function(r + (p == null ? $.dh = H.j3(n) : p) + "." + H.as_string(a) + "(" + o + ");}")() return new Function(r + (p == null ? $.dh = H.BoundClosure_selfFieldName(n) : p) + "." + H.as_string(a) + "(" + o + ");}")()
}, },
Closure_cspForwardInterceptedCall(arity, is_super_call, name, func) { Closure_cspForwardInterceptedCall(arity, is_super_call, name, func) {
var get_self = H.BoundClosure_selfOf, var get_self = H.BoundClosure_selfOf,
@ -1370,24 +1370,24 @@ var A = {
} }
}, },
Closure_forwardInterceptedCallTo(a, b, c) { Closure_forwardInterceptedCallTo(a, b, c) {
var s, r, q, p, o, n = $.nE var stub_name, arity, looked_up_func, t1, t2, args = $.nE
if (n == null) n = $.nE = H.j3("interceptor") if (args == null) args = $.nE = H.BoundClosure_selfFieldName("interceptor")
s = $.dh stub_name = $.dh
if (s == null) s = $.dh = H.j3("receiver") if (stub_name == null) stub_name = $.dh = H.BoundClosure_selfFieldName("receiver")
r = b.length arity = b.length
q = c || r >= 28 looked_up_func = c || arity >= 28
if (q) return H.Closure_cspForwardInterceptedCall(r, c, a, b) if (looked_up_func) return H.Closure_cspForwardInterceptedCall(arity, c, a, b)
if (r === 1) { if (arity === 1) {
q = "return function(){return this." + n + "." + H.as_string(a) + "(this." + s + ");" looked_up_func = "return function(){return this." + args + "." + H.as_string(a) + "(this." + stub_name + ");"
p = $.bk t1 = $.bk
$.bk = p + 1 $.bk = t1 + 1
return new Function(q + H.as_string(p) + "}")() return new Function(looked_up_func + H.as_string(t1) + "}")()
} }
o = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, r - 1).join(",") t2 = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity - 1).join(",")
q = "return function(" + o + "){return this." + n + "." + H.as_string(a) + "(this." + s + ", " + o + ");" looked_up_func = "return function(" + t2 + "){return this." + args + "." + H.as_string(a) + "(this." + stub_name + ", " + t2 + ");"
p = $.bk t1 = $.bk
$.bk = p + 1 $.bk = t1 + 1
return new Function(q + H.as_string(p) + "}")() return new Function(looked_up_func + H.as_string(t1) + "}")()
}, },
mx(a) { mx(a) {
// 理论上不能改, 但是似乎可以 // 理论上不能改, 但是似乎可以
@ -1406,7 +1406,7 @@ var A = {
BoundClosure_receiverOf(a) { BoundClosure_receiverOf(a) {
return a.b return a.b
}, },
j3(a) { BoundClosure_selfFieldName(a) {
var s, r, q, p = new H.dg("receiver", "interceptor"), var s, r, q, p = new H.dg("receiver", "interceptor"),
o = J.nL(Object.getOwnPropertyNames(p)) o = J.nL(Object.getOwnPropertyNames(p))
for (s = o.length, r = 0; r < s; ++r) { for (s = o.length, r = 0; r < s; ++r) {
@ -1416,7 +1416,7 @@ var A = {
throw H.wrap_expression(P.bz("Field name " + a + " not found.", null)) throw H.wrap_expression(P.bz("Field name " + a + " not found.", null))
}, },
throwCyclicInit(a) { throwCyclicInit(a) {
throw H.wrap_expression(new P.fj(a)) throw H.wrap_expression(new P.CyclicInitializationError(a))
}, },
getIsolateAffinityTag(a) { getIsolateAffinityTag(a) {
return init.getIsolateTag(a) return init.getIsolateTag(a)
@ -4526,7 +4526,7 @@ var A = {
}, },
fM: function fM() { }, fM: function fM() { },
el: function el() { }, el: function el() { },
fj: function fj(a) { CyclicInitializationError: function fj(a) {
this.a = a this.a = a
}, },
kG: function kG(a) { kG: function kG(a) {
@ -11118,7 +11118,7 @@ P.el.prototype = {
}, },
$iO: 1 $iO: 1
} }
P.fj.prototype = { P.CyclicInitializationError.prototype = {
k(a) { k(a) {
var s = this.a var s = this.a
return s == null ? "Reading static variable during its initialization" : "Reading static variable '" + s + "' during its initialization" return s == null ? "Reading static variable during its initialization" : "Reading static variable '" + s + "' during its initialization"
@ -19133,7 +19133,7 @@ LangData.k_.prototype = {
inherit_many(J.bE, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction]) inherit_many(J.bE, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction])
inherit(J.JsUnmodifiableArray, J.JsArray) inherit(J.JsUnmodifiableArray, J.JsArray)
inherit_many(J.JsNumber, [J.JsInt, J.jF]) inherit_many(J.JsNumber, [J.JsInt, J.jF])
inherit_many(P.O, [H.fz, H.dO, P.bc, H.fx, H.hU, H.h3, H.i9, P.f2, P.fL, P.aS, P.hW, P.hS, P.bJ, P.fh, P.fj]) inherit_many(P.O, [H.fz, H.dO, P.bc, H.fx, H.hU, H.h3, H.i9, P.f2, P.fL, P.aS, P.hW, P.hS, P.bJ, P.fh, P.CyclicInitializationError])
inherit(P.dE, P.ev) inherit(P.dE, P.ev)
inherit_many(P.dE, [H.cJ, W.az]) inherit_many(P.dE, [H.cJ, W.az])
inherit(H.ff, H.cJ) inherit(H.ff, H.cJ)