[Pkg-javascript-commits] [uglifyjs] 36/190: get rid of SCOPE_IS_NEEDED as it was always true
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Aug 7 23:17:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.
commit 6500f8c52cc75c45a4fac16324d4e531e372874d
Author: kzc <zaxxon2011 at gmail.com>
Date: Wed Oct 7 15:33:24 2015 -0400
get rid of SCOPE_IS_NEEDED as it was always true
---
bin/uglifyjs | 29 ++++++++++++-----------------
1 file changed, 12 insertions(+), 17 deletions(-)
diff --git a/bin/uglifyjs b/bin/uglifyjs
index eb970c6..f82d43c 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list