From 504095dd23db263baff54283430d58a7c11c40cb Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 4 Mar 2024 00:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=20convertToFastObject=20conv?= =?UTF-8?q?ertAllToFastObject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- md5.js | 15 +-------------- readme.md | 5 ++++- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/md5.js b/md5.js index 13cc06c..471822a 100644 --- a/md5.js +++ b/md5.js @@ -108,16 +108,6 @@ 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 function instanceTearOffGetter(a, b) { @@ -224,7 +214,6 @@ lazyFinal: lazyFinal, lazyOld: lazyOld, updateHolder: updateHolder, - convertToFastObject: convertToFastObject, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags @@ -19907,7 +19896,7 @@ var s = function (a) { var m = {} m[a] = 1 - return Object.keys(hunkHelpers.convertToFastObject(m))[0] + return Object.keys(m)[0] } v.getIsolateTag = function (a) { return s("___dart_" + a + v.isolateTag) @@ -20544,8 +20533,6 @@ Function.prototype.$6 = function (a, b, c, d, e, f) { return this(a, b, c, d, e, f) } - convertAllToFastObject(w) - convertToFastObject($); (function (a) { if (typeof document === "undefined") { a(null) diff --git a/readme.md b/readme.md index fb80d9a..27d3cc8 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,10 @@ - `function [a-zA-Z0-9]*\(\) \{ \}` - 0/202 -- [x] 清理 `setFunctionNamesIfNecessary` +- 清理无用/兼容函数 + - `setFunctionNamesIfNecessary` + - `convertAllToFastObject` + - `convertToFastObject` - [ ] And more