This commit is contained in:
cilame 2021-11-21 02:12:17 +08:00
parent b32bcc8adb
commit 8408325b0a

View File

@ -32834,17 +32834,17 @@ function pas_ob_encfunc(ast){
if (!path.getFunctionParent()){ if (!path.getFunctionParent()){
function get_obsort(path){ function get_obsort(path){
obsortname = path.node.arguments[0].name obsortname = path.node.arguments[0].name
obfuncstr.push('!'+generator(path.node, {minified:true}).code)
path.stop() path.stop()
path.remove()
} }
obfuncstr.push(generator(path.node, {minified:true}).code)
path.traverse({CallExpression: get_obsort}) path.traverse({CallExpression: get_obsort})
path.stop() path.stop()
path.remove()
} }
} }
function findobsortlist(path){ function findobsortlist(path){
if (path.node.id.name == obsortname){ if (path.node.id.name == obsortname){
obfuncstr.push(generator(path.node, {minified:true}).code) obfuncstr.push(generator(path.node, {minified:true}).code)
path.stop() path.stop()
path.remove() path.remove()
} }
@ -32875,7 +32875,7 @@ function pas_ob_encfunc(ast){
&& path.node.body.body[0].type == 'ReturnStatement' && path.node.body.body[0].type == 'ReturnStatement'
&& path.node.body.body[0].argument.type == 'CallExpression' && path.node.body.body[0].argument.type == 'CallExpression'
&& path.node.body.body[0].argument.callee.type == 'Identifier' && path.node.body.body[0].argument.callee.type == 'Identifier'
&& path.node.params.length == 5 // && path.node.params.length == 5
&& path.node.id && path.node.id
} }
function collect_alldecfunc(path){ function collect_alldecfunc(path){