aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-03 15:52:01 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-03 15:52:31 +0300
commit11863d6f9a48d6c7194ad65f9cc140292aedc948 (patch)
treeae1f6019802d367b234b2e702d925c234bc2c030 /lib/compress.js
parent3412498795cfeb4c5700c39e05f895c96412695f (diff)
downloadtracifyjs-11863d6f9a48d6c7194ad65f9cc140292aedc948.tar.gz
tracifyjs-11863d6f9a48d6c7194ad65f9cc140292aedc948.zip
more cleanup (dropped AST_SwitchBlock)
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 1319d798..10c1d222 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1181,7 +1181,7 @@ merge(Compressor.prototype, {
});
OPT(AST_Switch, function(self, compressor){
- var last_branch = self.body.body[self.body.body.length - 1];
+ var last_branch = self.body[self.body.length - 1];
if (last_branch) {
var stat = last_branch.body[last_branch.body.length - 1]; // last statement
if (stat instanceof AST_Break && !stat.label)