aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
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)