node-uglifier-es
Version:
Fully auto merging and uglifying a whole NodeJs project into one file with external files option. Recompiled from Zsolt Istvan Szabo's work with uglify-es instead of uglify-js-harmony.
2 lines • 819 B
JavaScript
var cachedModules=[],obj={str1:"test1",str2:"test2"},{str1,str2}=obj,arr=["test3","test4"],[str3,str4]=arr;if("test1"!==str1)throw new Error("ups obj destructuring did not work");if("test2"!==str2)throw new Error("ups obj destructuring did not work");if("test3"!==str3)throw new Error("ups array destructuring did not work");if("test4"!==str4)throw new Error("ups array destructuring did not work");class Greeter{sayHi(r="Anonymous"){return`Hi ${r}!`}}var greeter=new Greeter;if("Hi Anonymous!"!==greeter.sayHi())throw new Error("ups class, default input, string interpolation did not work");var result="";this.greeter=greeter;var indirectFn=r=>{result=this.greeter.sayHi(r)};if(indirectFn("Justin"),"Hi Justin!"!==result)throw new Error("ups arrow function did not work:");
//# sourceMappingURL=UGLIFY_SOURCE_MAP_TOKEN