From 93e64a1b9ecec364125ade54f9a9ce3f03f93c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 26 Jan 2025 14:06:00 +0900 Subject: [PATCH] fix deobf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- deobf.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deobf.js b/deobf.js index a3c3007..2e89312 100644 --- a/deobf.js +++ b/deobf.js @@ -556,6 +556,9 @@ const objDeobfMemberExpr = { key = node.property.value; } let value = map[key]; + if (value === undefined) { + return; + } if (value.type == "StringLiteral") { path.replaceWith(value); return; @@ -593,6 +596,9 @@ const objDeobfMemberExpr = { key = node.callee.property.value; } let value = map[key]; + if (value === undefined) { + return; + } // ! replace functions let retNode = value.body.body[0].argument; // ! call expression @@ -635,7 +641,6 @@ const objDeobfMemberExpr = { function evalValue(left, right, op) { switch (op) { case "===": - return left == right; case "!==": return left != right; }