obfuscating javascript Error: Cannot read property 'type' of null
obfuscating javascript Error: Cannot read property 'type' of null
我正在试验 javascript 混淆。我正在使用 https://obfuscator.io/ and https://javascriptobfuscator.com/Javascript-Obfuscator.aspx 混淆它 returns 试图混淆这段代码时出错,为什么?
document.body.onmousedown = function () {
try {
document.getElementById("moveItem").innerHTML = "";
createdChart = false;
} catch {
}
};
错误:
TypeError: Cannot read property 'type' of null
A free and efficient obfuscator for JavaScript (including ES2017).
现在检查 ES2017 docs 中 catch
的语法。
catch
( CatchParameter[?Yield, ?Await] ) Block[?Yield, ?Await, ?Return]
如您所见,括号是必需的。这就是 JavaScript 混淆器无法处理它的原因。
我正在试验 javascript 混淆。我正在使用 https://obfuscator.io/ and https://javascriptobfuscator.com/Javascript-Obfuscator.aspx 混淆它 returns 试图混淆这段代码时出错,为什么?
document.body.onmousedown = function () {
try {
document.getElementById("moveItem").innerHTML = "";
createdChart = false;
} catch {
}
};
错误:
TypeError: Cannot read property 'type' of null
A free and efficient obfuscator for JavaScript (including ES2017).
现在检查 ES2017 docs 中 catch
的语法。
catch
( CatchParameter[?Yield, ?Await] ) Block[?Yield, ?Await, ?Return]
如您所见,括号是必需的。这就是 JavaScript 混淆器无法处理它的原因。