fix #51
authorMihai Bazon <mihai@bazon.net>
Sun, 18 Nov 2012 15:37:45 +0000 (17:37 +0200)
committerMihai Bazon <mihai@bazon.net>
Sun, 18 Nov 2012 15:37:45 +0000 (17:37 +0200)
lib/transform.js

index 976dd05..8b4fd9f 100644 (file)
@@ -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;