清理 convertToFastObject convertAllToFastObject

This commit is contained in:
shenjack 2024-03-04 00:23:21 +08:00
parent b7421ffc89
commit 504095dd23
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 5 additions and 15 deletions

15
md5.js
View File

@ -108,16 +108,6 @@
return a return a
} }
function convertToFastObject(a) {
function t() { }
t.prototype = a
new t()
return a
}
function convertAllToFastObject(a) {
for (var s = 0; s < a.length; ++s) convertToFastObject(a[s])
}
var y = 0 var y = 0
function instanceTearOffGetter(a, b) { function instanceTearOffGetter(a, b) {
@ -224,7 +214,6 @@
lazyFinal: lazyFinal, lazyFinal: lazyFinal,
lazyOld: lazyOld, lazyOld: lazyOld,
updateHolder: updateHolder, updateHolder: updateHolder,
convertToFastObject: convertToFastObject,
updateTypes: updateTypes, updateTypes: updateTypes,
setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag,
setOrUpdateLeafTags: setOrUpdateLeafTags setOrUpdateLeafTags: setOrUpdateLeafTags
@ -19907,7 +19896,7 @@
var s = function (a) { var s = function (a) {
var m = {} var m = {}
m[a] = 1 m[a] = 1
return Object.keys(hunkHelpers.convertToFastObject(m))[0] return Object.keys(m)[0]
} }
v.getIsolateTag = function (a) { v.getIsolateTag = function (a) {
return s("___dart_" + a + v.isolateTag) return s("___dart_" + a + v.isolateTag)
@ -20544,8 +20533,6 @@
Function.prototype.$6 = function (a, b, c, d, e, f) { Function.prototype.$6 = function (a, b, c, d, e, f) {
return this(a, b, c, d, e, f) return this(a, b, c, d, e, f)
} }
convertAllToFastObject(w)
convertToFastObject($);
(function (a) { (function (a) {
if (typeof document === "undefined") { if (typeof document === "undefined") {
a(null) a(null)

View File

@ -6,7 +6,10 @@
- `function [a-zA-Z0-9]*\(\) \{ \}` - `function [a-zA-Z0-9]*\(\) \{ \}`
- 0/202 - 0/202
- [x] 清理 `setFunctionNamesIfNecessary` - 清理无用/兼容函数
- `setFunctionNamesIfNecessary`
- `convertAllToFastObject`
- `convertToFastObject`
- [ ] And more - [ ] And more