Compare commits
3 Commits
496e3fe37b
...
742ff64afb
Author | SHA1 | Date | |
---|---|---|---|
742ff64afb | |||
3f7746fb2e | |||
4bd50781b3 |
@ -1026,7 +1026,7 @@ var A = {
|
||||
}
|
||||
}(a)
|
||||
},
|
||||
m9(a, b) {
|
||||
JsNoSuchMethodError(a, b) {
|
||||
var s = b == null,
|
||||
r = s ? null : b.method
|
||||
return new H.fx(a, r, s ? null : b.receiver)
|
||||
@ -1044,18 +1044,18 @@ var A = {
|
||||
return err
|
||||
},
|
||||
_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
|
||||
s = ex.message
|
||||
message = ex.message
|
||||
if ("number" in ex && typeof ex.number == "number") {
|
||||
r = ex.number
|
||||
q = r & 65535
|
||||
if ((C.JsInt.am(r, 16) & 8191) === 10) switch (q) {
|
||||
number = ex.number
|
||||
is_error_code = number & 65535
|
||||
if ((C.JsInt.am(number, 16) & 8191) === 10) switch (is_error_code) {
|
||||
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 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))
|
||||
}
|
||||
}
|
||||
@ -1070,29 +1070,29 @@ var A = {
|
||||
$.rb()
|
||||
undef_property = $.rg()
|
||||
undef_literal_property = $.rf()
|
||||
match = nsme.aH(s)
|
||||
if (match != null) return H.saveStackTrace(ex, H.m9(s, match))
|
||||
match = nsme.aH(message)
|
||||
if (match != null) return H.saveStackTrace(ex, H.JsNoSuchMethodError(message, match))
|
||||
else {
|
||||
match = not_closure.aH(s)
|
||||
match = not_closure.aH(message)
|
||||
if (match != null) {
|
||||
match.method = "call"
|
||||
return H.saveStackTrace(ex, H.m9(s, match))
|
||||
return H.saveStackTrace(ex, H.JsNoSuchMethodError(message, match))
|
||||
} else {
|
||||
match = null_call.aH(s)
|
||||
match = null_call.aH(message)
|
||||
if (match == null) {
|
||||
match = null_literal_call.aH(s)
|
||||
match = null_literal_call.aH(message)
|
||||
if (match == null) {
|
||||
match = undef_call.aH(s)
|
||||
match = undef_call.aH(message)
|
||||
if (match == null) {
|
||||
match = undef_literal_call.aH(s)
|
||||
match = undef_literal_call.aH(message)
|
||||
if (match == null) {
|
||||
match = null_property.aH(s)
|
||||
match = null_property.aH(message)
|
||||
if (match == null) {
|
||||
match = null_literal_call.aH(s)
|
||||
match = null_literal_call.aH(message)
|
||||
if (match == null) {
|
||||
match = undef_property.aH(s)
|
||||
match = undef_property.aH(message)
|
||||
if (match == null) {
|
||||
match = undef_literal_property.aH(s)
|
||||
match = undef_literal_property.aH(message)
|
||||
t1 = match != null
|
||||
} else
|
||||
t1 = true
|
||||
@ -1109,24 +1109,24 @@ var A = {
|
||||
} else
|
||||
t1 = true
|
||||
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 (typeof s == "string" && s.indexOf("call stack") !== -1) return new P.el()
|
||||
s = function (b) {
|
||||
if (typeof message == "string" && message.indexOf("call stack") !== -1) return new P.el()
|
||||
message = function (b) {
|
||||
try {
|
||||
return String(b)
|
||||
} catch (d) { }
|
||||
return null
|
||||
}(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 s == "string" && s === "too much recursion") return new P.el()
|
||||
if (typeof message == "string" && message === "too much recursion") return new P.el()
|
||||
return ex
|
||||
},
|
||||
getTraceFromException(a) {
|
||||
@ -1307,7 +1307,7 @@ var A = {
|
||||
q = "self" + H.as_string(r)
|
||||
r = "return function(){var " + q + " = this."
|
||||
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(",")
|
||||
r = $.bk
|
||||
@ -1315,7 +1315,7 @@ var A = {
|
||||
o += H.as_string(r)
|
||||
r = "return function(" + o + "){return this."
|
||||
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) {
|
||||
var get_self = H.BoundClosure_selfOf,
|
||||
@ -1370,24 +1370,24 @@ var A = {
|
||||
}
|
||||
},
|
||||
Closure_forwardInterceptedCallTo(a, b, c) {
|
||||
var s, r, q, p, o, n = $.nE
|
||||
if (n == null) n = $.nE = H.j3("interceptor")
|
||||
s = $.dh
|
||||
if (s == null) s = $.dh = H.j3("receiver")
|
||||
r = b.length
|
||||
q = c || r >= 28
|
||||
if (q) return H.Closure_cspForwardInterceptedCall(r, c, a, b)
|
||||
if (r === 1) {
|
||||
q = "return function(){return this." + n + "." + H.as_string(a) + "(this." + s + ");"
|
||||
p = $.bk
|
||||
$.bk = p + 1
|
||||
return new Function(q + H.as_string(p) + "}")()
|
||||
var stub_name, arity, looked_up_func, t1, t2, args = $.nE
|
||||
if (args == null) args = $.nE = H.BoundClosure_selfFieldName("interceptor")
|
||||
stub_name = $.dh
|
||||
if (stub_name == null) stub_name = $.dh = H.BoundClosure_selfFieldName("receiver")
|
||||
arity = b.length
|
||||
looked_up_func = c || arity >= 28
|
||||
if (looked_up_func) return H.Closure_cspForwardInterceptedCall(arity, c, a, b)
|
||||
if (arity === 1) {
|
||||
looked_up_func = "return function(){return this." + args + "." + H.as_string(a) + "(this." + stub_name + ");"
|
||||
t1 = $.bk
|
||||
$.bk = t1 + 1
|
||||
return new Function(looked_up_func + H.as_string(t1) + "}")()
|
||||
}
|
||||
o = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, r - 1).join(",")
|
||||
q = "return function(" + o + "){return this." + n + "." + H.as_string(a) + "(this." + s + ", " + o + ");"
|
||||
p = $.bk
|
||||
$.bk = p + 1
|
||||
return new Function(q + H.as_string(p) + "}")()
|
||||
t2 = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity - 1).join(",")
|
||||
looked_up_func = "return function(" + t2 + "){return this." + args + "." + H.as_string(a) + "(this." + stub_name + ", " + t2 + ");"
|
||||
t1 = $.bk
|
||||
$.bk = t1 + 1
|
||||
return new Function(looked_up_func + H.as_string(t1) + "}")()
|
||||
},
|
||||
mx(a) {
|
||||
// 理论上不能改, 但是似乎可以
|
||||
@ -1406,7 +1406,7 @@ var A = {
|
||||
BoundClosure_receiverOf(a) {
|
||||
return a.b
|
||||
},
|
||||
j3(a) {
|
||||
BoundClosure_selfFieldName(a) {
|
||||
var s, r, q, p = new H.dg("receiver", "interceptor"),
|
||||
o = J.nL(Object.getOwnPropertyNames(p))
|
||||
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))
|
||||
},
|
||||
throwCyclicInit(a) {
|
||||
throw H.wrap_expression(new P.fj(a))
|
||||
throw H.wrap_expression(new P.CyclicInitializationError(a))
|
||||
},
|
||||
getIsolateAffinityTag(a) {
|
||||
return init.getIsolateTag(a)
|
||||
@ -4526,7 +4526,7 @@ var A = {
|
||||
},
|
||||
fM: function fM() { },
|
||||
el: function el() { },
|
||||
fj: function fj(a) {
|
||||
CyclicInitializationError: function fj(a) {
|
||||
this.a = a
|
||||
},
|
||||
kG: function kG(a) {
|
||||
@ -11118,7 +11118,7 @@ P.el.prototype = {
|
||||
},
|
||||
$iO: 1
|
||||
}
|
||||
P.fj.prototype = {
|
||||
P.CyclicInitializationError.prototype = {
|
||||
k(a) {
|
||||
var s = this.a
|
||||
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(J.JsUnmodifiableArray, J.JsArray)
|
||||
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_many(P.dE, [H.cJ, W.az])
|
||||
inherit(H.ff, H.cJ)
|
||||
|
Loading…
Reference in New Issue
Block a user