You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// original code//var_calls_=10,a=100,b=10,c=0;functionf0(foo,bar_2){functionf1(b,a_2,a_2){if(((c=c+1)+(b)));else{varbrake3=5;while(((((--b)+(typeoff2=="function"&&--_calls_>=0&&f2((c=1+c,((("foo"^true)^(b&&(b[(c=1+c,(((2*"number")<=("c"%(-5)))/((22&&"object")>(bar_2&&(bar_2[(c=1+c,(!((((-3),/[a2][^e]+$/)|([,0][1]>="a")))))]+=(([,0].length===2)/(-4)))))))]+=("c"||(-3)))))*((23..toString()-1)^("a"=="function")))),([,0].length===2),(c=1+c,(((NaN<"bar")/(25.&&24.toString()))*(((-3)<<"b")|(Infinity+"bar")))))))||8).toString()[(bar_2)])&&--brake3>0)return(((foo=((this%(-4))!==(false<=2)))<<(("">>>24.toString())%(0x26.toString()<="a"))));}}varc_2=f1("function");functionf2(arguments,foo){{varexpr5=((c=c+1)+(arguments=(a/* ignore */++)));for(varkey5inexpr5){c=1+c;varfoo=expr5[key5];;}}};functionf3(c_2_1,b){;}varfoo_1=f3(3,(-4),(delete(((+(("number"!==this)))^((3??(-3))||((-0)^NaN))))));}varb_2=f0((b<<=a),0,(-3));console.log(null,a,b,c,Infinity,NaN,undefined);
// !!! uglify failed !!!
Error: init must have single declaration
at AST_ForIn._validate (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:833:58)
at AST_ForIn.validate (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:415:38)
at AST_ForIn.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:509:22)
at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2705:25)
at List (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:103:23)
at do_list (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2704:16)
at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2786:21)
at descend_scope (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:14007:17)
at TreeTransformer.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:13610:17)
at AST_Defun.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)
at AST_Defun.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)
at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2705:25)
at List (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:103:23)
at do_list (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2704:16)
at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2786:21)
at descend_scope (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:14007:17)
at TreeTransformer.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:13610:17)
at AST_Defun.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)
at AST_Defun.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)
at AST_Defun.eval [as drop_unused] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:14051:14)
at Compressor.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:6570:13)
at AST_Defun.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)
at AST_Defun.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)
at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2705:25)
at List (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:103:23)
at do_list (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2704:16)
at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2718:21)
at Compressor.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:6563:5)
at AST_Toplevel.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)
at AST_Toplevel.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)
at Compressor.compress (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:6603:21)
at Object.minify (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:24586:57)
at /Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2564:32
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2556:20)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
// reduced test case (output will differ)// (beautified)functionf0(){functionf1(b){if(b){}else{varbrake3=0;while(0+(0(f2==0)&&f2())&&--brake3){return0;}}}varc_2=f1("function");functionf2(){for(varkey5in0){expr5;}}}// minify error: Error: init must have single declaration// at AST_ForIn._validate (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:833:58)// at AST_ForIn.validate (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:415:38)// at AST_ForIn.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:509:22)// at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2705:25)// at List (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:103:23)// at do_list (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2704:16)// at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2786:21)// at descend_scope (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:14007:17)// at TreeTransformer.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:13610:17)// at AST_Defun.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)// at AST_Defun.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)// at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2705:25)// at List (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:103:23)// at do_list (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2704:16)// at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2786:21)// at descend_scope (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:14007:17)// at TreeTransformer.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:13610:17)// at AST_Defun.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)// at AST_Defun.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)// at AST_Defun.eval [as drop_unused] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:14051:14)// at Compressor.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:6570:13)// at AST_Defun.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)// at AST_Defun.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)// at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2705:25)// at List (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:103:23)// at do_list (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2704:16)// at eval (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2718:21)// at Compressor.eval [as before] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:6563:5)// at AST_Toplevel.eval [as transform] (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:2887:31)// at AST_Toplevel.ctor.transform (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:507:34)// at Compressor.compress (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:6603:21)// at Object.minify (eval at <anonymous> (/Users/runner/work/UglifyJS/UglifyJS/tools/node.js:1:1), <anonymous>:24586:57)// at test_minify (/Users/runner/work/UglifyJS/UglifyJS/test/reduce.js:815:22)// at reduce_test (/Users/runner/work/UglifyJS/UglifyJS/test/reduce.js:636:16)// at log (/Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2270:23)// at /Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2653:80// at Array.forEach (<anonymous>)// at Object.<anonymous> (/Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2556:20)// at Module._compile (node:internal/modules/cjs/loader:1126:14)// at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)// at Module.load (node:internal/modules/cjs/loader:1004:32)// at Function.Module._load (node:internal/modules/cjs/loader:839:12)// at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)// at node:internal/main/run_main_module:17:47// options: {// "compress": {// "passes": 1000000,// "sequences": 1000000,// "unsafe": true,// "unsafe_Function": true,// "unsafe_math": true,// "unsafe_proto": true,// "unsafe_regexp": true// },// "output": {// "v8": true// },// "validate": true// }
The text was updated successfully, but these errors were encountered: