Refactor printString function and update function names

This commit is contained in:
shenjack-5600u 2024-03-04 02:45:12 +08:00
parent c56b952d79
commit 23dab262a3
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F
2 changed files with 8 additions and 7 deletions

12
md5.js
View File

@ -2893,21 +2893,21 @@
eI: function eI(a) {
this.a = a
},
ve(a) {
printString(string) {
if (typeof dartPrint == "function") {
dartPrint(a)
dartPrint(string)
return
}
if (typeof console == "object" && typeof console.log != "undefined") {
console.log(a)
console.log(string)
return
}
if (typeof window == "object") return
if (typeof print == "function") {
print(a)
print(string)
return
}
throw "Unable to print message: " + String(a)
throw "Unable to print message: " + String(string)
},
vm(a) {
return H.G(new H.fz("Field '" + H.e(a) + "' has been assigned during initialization."))
@ -17876,7 +17876,7 @@
if (q.f == $.a()) {
q.f = $.av()
q.W()
} else H.ve(J.b4(o))
} else H.printString(J.b4(o))
}
for (s = l.k2, p = s.length, r = 0; r < s.length; s.length === p || (0, H.F)(s), ++r) {
q = s[r]

View File

@ -12,8 +12,9 @@
- `convertToFastObject`
- 清理一些函数
- [] `P.p` (svg 函数)
- [ ] `P.p` (svg 函数)
- [x] `z` (检查环境函数)
- [x] `H.ve` -> `H.printString`
- [ ] And more