From: Mihai Bazon Date: Sun, 18 Nov 2012 15:37:45 +0000 (+0200) Subject: fix #51 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=089ac908b794bf1bc06d004bcb32d3d65f19ce64;p=UglifyJS.git fix #51 --- 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;