aboutsummaryrefslogtreecommitdiff
path: root/bin/uglifyjs
diff options
context:
space:
mode:
authorkzc <zaxxon2011@gmail.com>2015-10-07 15:33:24 -0400
committerkzc <zaxxon2011@gmail.com>2015-10-07 15:33:24 -0400
commit6500f8c52cc75c45a4fac16324d4e531e372874d (patch)
tree3a900e0b59f231e87f427e889fbc8266046bd074 /bin/uglifyjs
parent4d2f7d83af839d78a381fc4faa79dbea3b2c8070 (diff)
downloadtracifyjs-6500f8c52cc75c45a4fac16324d4e531e372874d.tar.gz
tracifyjs-6500f8c52cc75c45a4fac16324d4e531e372874d.zip
get rid of SCOPE_IS_NEEDED as it was always true
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-xbin/uglifyjs29
1 files changed, 12 insertions, 17 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs
index eb970c60..f82d43cb 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -401,17 +401,14 @@ async.eachLimit(files, 1, function (file, cb) {
writeNameCache("props", cache);
})();
- var SCOPE_IS_NEEDED = true;
var TL_CACHE = readNameCache("vars");
- if (SCOPE_IS_NEEDED) {
- time_it("scope", function(){
- TOPLEVEL.figure_out_scope({ screw_ie8: ARGS.screw_ie8, cache: TL_CACHE });
- if (ARGS.lint) {
- TOPLEVEL.scope_warnings();
- }
- });
- }
+ time_it("scope", function(){
+ TOPLEVEL.figure_out_scope({ screw_ie8: ARGS.screw_ie8, cache: TL_CACHE });
+ if (ARGS.lint) {
+ TOPLEVEL.scope_warnings();
+ }
+ });
if (COMPRESS) {
time_it("squeeze", function(){
@@ -419,14 +416,12 @@ async.eachLimit(files, 1, function (file, cb) {
});
}
- if (SCOPE_IS_NEEDED) {
- time_it("scope", function(){
- TOPLEVEL.figure_out_scope({ screw_ie8: ARGS.screw_ie8, cache: TL_CACHE });
- if (MANGLE && !TL_CACHE) {
- TOPLEVEL.compute_char_frequency(MANGLE);
- }
- });
- }
+ time_it("scope", function(){
+ TOPLEVEL.figure_out_scope({ screw_ie8: ARGS.screw_ie8, cache: TL_CACHE });
+ if (MANGLE && !TL_CACHE) {
+ TOPLEVEL.compute_char_frequency(MANGLE);
+ }
+ });
if (MANGLE) time_it("mangle", function(){
MANGLE.cache = TL_CACHE;