From 11863d6f9a48d6c7194ad65f9cc140292aedc948 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 3 Oct 2012 15:52:01 +0300 Subject: more cleanup (dropped AST_SwitchBlock) --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compress.js') 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) -- cgit v1.2.3