Closed andrey-serdyuk closed 2 years ago
It's failing to parse a lambda, can you provide your JavaScript
I know exact JS error in the file. I did this syntax error in order to check my code stabily but instead of receiving an Uglify errors list or to catch an exception it simply crashed.
If you could provide an Uglify error for case when parsing is imposible it could be very helpfull imo
It should do what you describe. There is a bug.
Please provide the repro code
Here is the original code which passes minification successfully:
var SurfSight = function (_settings) {
this.showPlaceholder = (container) => {
$(container).find('video').hide();
$(container).find('.videoID').show();
};
};
Here is the code which causes the crash.
var SurfSight = function (_settings) {
this.showPlaceholder (container) => {
$(container).find('video').hide();
$(container).find('.videoID').show();
};
};
I've changed the row
this.showPlaceholder (container) => {
by removing the sign '=' to cause syntax error in purpose to check my minifier code stability and it crashed.
Thanks, I'll take a look
Thank you
Fixed in v1.16.6
Hi. Thanks for the fix. There is a problem to install this version yet.
Install-Package NUglify -Version 1.16.6 **Install-Package : NU1102: Unable to find package NUglify with version (>= 1.16.6)
Ughh the build failed for some reason. Will look later
1.17.0 should publish shortly
Thank you very much
Now fix your syntax error 😂
😂 Thank you very much, friend
I receive an exception when I run Uglify.Js which is unable to try-catch. How can I try-catch it please? Thanks v1.16.4