From 1f973a4b5947f322bf2cb5c9576811f9fa644a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Sat, 27 Feb 2016 13:27:18 +0000 Subject: [PATCH] fix crash: Import statements don't abort --- lib/compress.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compress.js b/lib/compress.js index b1fbdf25..f96fb04a 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1025,6 +1025,7 @@ merge(Compressor.prototype, { var n = this.body.length; return n > 0 && aborts(this.body[n - 1]); }; + def(AST_Import, function(){ return null; }); def(AST_BlockStatement, block_aborts); def(AST_SwitchBranch, block_aborts); def(AST_If, function(){