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// (beautified)var_calls_=10,a=100,b=10,c=0;functionf0(){c=c+1;if(1===1 ? a : b){try{{b=a;varb=b&&b.done;}}finally{}}else{varb_1=1===1 ? a : b;}}varundefined_1=f0((c=c+1)+delete((("object"||-3)^[,0][1]%5)+(-3==-4??(a&&(a[c=1+c,(24..toString()<<[,0][1])*({}^undefined)===("c"<="undefined"||a&&(a[c=1+c,5%this>("foo"<22)||-0>>>"b"^(c=c+1,false)]=true^this))]=0^23..toString())))),{});console.log(null,a,b,c,Infinity,NaN,undefined);
original result:
null 100 10 2 Infinity NaN undefined
uglified result:
evalmachine.<anonymous>:1
var _calls_=10,a=100,b=10,c=0;function f0(){var b;c+=1,a&&b.done}var undefined_1=f0((c+=1)+!0,{});console.log(null,a,b,c,1/0,NaN,void 0);
^
TypeError: Cannot read properties of undefined (reading 'done')
at f0 (evalmachine.<anonymous>:1:61)
at evalmachine.<anonymous>:1:82
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:266:12)
at Object.exports.run_code (/Users/runner/work/UglifyJS/UglifyJS/test/sandbox.js:39:16)
at run_code (/Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2122:20)
at /Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2569:29
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/UglifyJS/UglifyJS/test/ufuzz/index.js:2556:20)
// reduced test case (output will differ)// (beautified)vara=1;functionf0(){if(a){b=1;varb=b&&b.done;}else{varb_1=1 ? a : b;}}f0();// output: // minify: TypeError: Cannot read properties of undefined (reading 'done')// options: {// "mangle": false,// "output": {// "v8": true// },// "validate": true// }
The text was updated successfully, but these errors were encountered: