[Pkg-javascript-commits] [uglifyjs] 349/491: Transform can be simplified when clone is not done. (#2621)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:51 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit 01057cf76d799edc5c7dd45d42a2e7bf44589948
Author: Ondřej Španěl <OndrejSpanel at users.noreply.github.com>
Date:   Tue Dec 19 10:56:16 2017 +0100

    Transform can be simplified when clone is not done. (#2621)
---
 lib/transform.js | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/lib/transform.js b/lib/transform.js
index 8008e57..dcde62c 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -60,12 +60,9 @@ TreeTransformer.prototype = new TreeWalker;
             tw.push(this);
             if (tw.before) x = tw.before(this, descend, in_list);
             if (x === undefined) {
-                if (!tw.after) {
-                    x = this;
-                    descend(x, tw);
-                } else {
-                    tw.stack[tw.stack.length - 1] = x = this;
-                    descend(x, tw);
+                x = this;
+                descend(x, tw);
+                if (tw.after) {
                     y = tw.after(x, in_list);
                     if (y !== undefined) x = y;
                 }

-- 
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