rspivak / slimit

SlimIt - a JavaScript minifier/parser in Python
MIT License
551 stars 94 forks source link

Optimize consecutive declarations #17

Open rspivak opened 12 years ago

rspivak commented 12 years ago
var a = 10; var b = 20;  ==>  var a=10,b=20;
fflexo commented 7 years ago

var a=10; var b=a; => var a=10,b=a;. Is that case safe also? I.e. is the order of initialisation defined on all implementations one might reasonably care about?