aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-11-18 17:37:45 +0200
committerMihai Bazon <mihai@bazon.net>2012-11-18 17:37:45 +0200
commit089ac908b794bf1bc06d004bcb32d3d65f19ce64 (patch)
tree53f231225ce08bfc68d44389e1b4257d24ee029d /lib
parent0d3fd2ef30d0a85edb76d6db6e9f6ef034f1cee4 (diff)
downloadtracifyjs-089ac908b794bf1bc06d004bcb32d3d65f19ce64.tar.gz
tracifyjs-089ac908b794bf1bc06d004bcb32d3d65f19ce64.zip
fix #51
Diffstat (limited to 'lib')
-rw-r--r--lib/transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transform.js b/lib/transform.js
index 976dd058..8b4fd9fd 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -65,7 +65,7 @@ TreeTransformer.prototype = new TreeWalker;
x = this;
descend(x, tw);
} else {
- tw.stack[tw.stack - 1] = x = this.clone();
+ tw.stack[tw.stack.length - 1] = x = this.clone();
descend(x, tw);
y = tw.after(x, in_list);
if (y !== undefined) x = y;