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 result:
null 100 100 133 Infinity NaN undefined
uglified result:
evalmachine.<anonymous>:1
var _calls_=10,a=100,b=10,c=0;function f0(n,t,o){try{c+=1}catch(o){!function(){switch(a+++a){case a+++(b=a):c+=1;break;case/[abc4]/.test((a+++(b=a)||b||5).toString()):break;case{"":--b+/[abc4]/.test((c=1+c,(!0^(t=(+(""+(0xdeadn<<16n|0xbeefn))<=-0)/"")||b||5).toString())),c:b=a}:var n=void 0;break;case--b+(n+=!1,!0):for(var o=5;--b+("function"==typeof f4&&0<=--_calls_&&f4((c=1+c,(n/=0)-(this>>NaN)<0)))&&0<--o;)c+=1}}("24"in{Infinity:a+++/[abc4]/g.exec((!b||b||5).toString())}&&(c=1+(c=c+1+1),a++,a++,t*=!1 in[],a++))}for(var f=5;(b=a)&&0<--f;){var i=void 0,e=(c+=1)+("function"==typeof f4&&0<=--_calls_&&f4(--b+n,2));try{c=1+(c=1+c),e&&(e.then*=!1),c+=1}catch(c){}finally{c+=1}if((c+=1)+e){c=1+c,c+=1;for(var i=5;c=1+c,(void 0)[void function(){c=1+c,t&&(t[c=1+c,NaN>>>(this<=3)**NaN]-="undefined"),c=1+(c=1+c)}()]??=!1,c=1+c,!0|(e&&({foo:e.get}={foo:0}))|-2-(e&&(e.null=0))&&0<--i;);}}}var a_2=f0("foo");console.log(null,a,b,c,1/0,NaN,void 0);
^
TypeError: Cannot read properties of undefined (reading 'undefined')
at f0 (evalmachine.<anonymous>:1:814)
at evalmachine.<anonymous>:1:898
at Script.runInContext (node:vm:141:12)
at Object.runInContext (node:vm:297:6)
at run_code_vm (/Users/runner/work/UglifyJS/UglifyJS/test/sandbox.js:273:12)
at Object.exports.run_code (/Users/runner/work/UglifyJS/UglifyJS/test/sandbox.js:36:38)
at run_code (/Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2116:20)
at /Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2572:29
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2559:20)
// reduced test case (output will differ)// (beautified)varc=0;functionf0(){while(1){vara_2=functionf4(foo_1){try{0();}catch(b_2){}if(foo_1){vara_1=functionf5(a_2){do{console.log(a_2[0]);}while(1);}(functionc_1(){});}}(c+1);}}f0();// output: Error: Script execution timed out after 100ms// minify: TypeError: Cannot read properties of undefined (reading '0')// options: {// "compress": {// "passes": 1000000,// "sequences": 1000000,// "unsafe": true,// "unsafe_Function": true,// "unsafe_math": true,// "unsafe_proto": true,// "unsafe_regexp": true// },// "module": false,// "output": {// "v8": true// },// "validate": true// }
The text was updated successfully, but these errors were encountered: