-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-12127] Upgraded Uglify from v1 to v2. Added uglify error handling... #3741
Conversation
…ing to mobile web's build.
@@ -2281,21 +2274,27 @@ build.prototype = { | |||
|
|||
findSymbols: function (ast) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this just finding variable/function identifiers? If so, you can accomplish it a lot easier using figure_out_scope. http://lisperator.net/uglifyjs/scope
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'll try playing around with the scope stuff tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
…y function calls but property calls too.
this.logger.error(__('%s', ex.message)); | ||
} | ||
try { | ||
var contents = fs.readFileSync(source).toString().split('\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can move this read inside the if statement, that way we don't have to read the file if we don't have a line. Also, what about windows newlines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't fix. Contents is needed to check if the line # is valid.
Code reviewed and tested. Request accepted |
[TIMOB-12127] Upgraded Uglify from v1 to v2. Added uglify error handling...
... to mobile web's build.