自定义源禁用 Function 构造函数调用

This commit is contained in:
lyswhut 2024-01-13 12:10:48 +08:00
parent 31288df1fb
commit 154ee13953

View File

@ -525,6 +525,9 @@ globalThis.lx_setup = (key, id, name, description, version, author, homepage, ra
globalThis.eval = function() {
throw new Error('eval is not available')
}
globalThis.Function = function() {
throw new Error('Function is not available')
}
const excludes = [
Function.prototype.toString,