aboutsummaryrefslogtreecommitdiff
path: root/lib/transform.js
diff options
context:
space:
mode:
authorkzc <zaxxon2011@gmail.com>2016-01-27 02:17:06 -0500
committerMihai Bazon <mihai.bazon@gmail.com>2016-01-27 11:48:15 +0200
commitf4c2ea37bf9231b6f76804e74ee157be916280de (patch)
tree4de276112258083f1e8bcf6dc015f8838b8110a2 /lib/transform.js
parent915f907186bf4029c830716b9d018e2d09ad4120 (diff)
downloadtracifyjs-f4c2ea37bf9231b6f76804e74ee157be916280de.tar.gz
tracifyjs-f4c2ea37bf9231b6f76804e74ee157be916280de.zip
Collapse single use var definitions
Fix #721
Diffstat (limited to 'lib/transform.js')
-rw-r--r--lib/transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transform.js b/lib/transform.js
index 62e6e02b..3018e8ff 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -64,7 +64,7 @@ TreeTransformer.prototype = new TreeWalker;
x = this;
descend(x, tw);
} else {
- tw.stack[tw.stack.length - 1] = x = this.clone();
+ tw.stack[tw.stack.length - 1] = x = this;
descend(x, tw);
y = tw.after(x, in_list);
if (y !== undefined) x = y;