H.uk -> H._installSpecializedAsCheck

This commit is contained in:
shenjack 2024-04-20 16:36:25 +08:00
parent d447f5c9db
commit e4fc8bf46e
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -2090,7 +2090,7 @@ var A = {
a.b = c a.b = c
return a.b(b) return a.b(b)
}, },
uk(a) { _installSpecializedAsCheck(a) {
var s, r, this_ = this var s, r, this_ = this
if (!H.isStrongTopType(this_)) { if (!H.isStrongTopType(this_)) {
if (!(this_ === t.c)) { if (!(this_ === t.c)) {
@ -2111,7 +2111,6 @@ var A = {
} }
} }
this_.a = r this_.a = r
// logger.debug("进入 H.uk", r, r(a))
return this_.a(a) return this_.a(a)
}, },
ln(a) { ln(a) {
@ -2163,7 +2162,7 @@ var A = {
// set run time info // set run time info
else if (s.b(a)) return a else if (s.b(a)) return a
logger.debug("faild nullable as check", a) logger.debug("faild nullable as check", a)
console.log("faild nullable as check", a) console.log("faild nullable as check", a, s)
H._failedAsCheck(a, s) H._failedAsCheck(a, s)
}, },
_failedAsCheck(a, b) { _failedAsCheck(a, b) {
@ -2428,7 +2427,7 @@ var A = {
return q return q
}, },
_Universe__installTypeTests(a, b) { _Universe__installTypeTests(a, b) {
b.a = H.uk b.a = H._installSpecializedAsCheck
b.b = H.ul b.b = H.ul
return b return b
}, },