Don't pretend to evaluate lambdas
authorMihai Bazon <mihai@bazon.net>
Sun, 4 Aug 2013 18:44:17 +0000 (21:44 +0300)
committerMihai Bazon <mihai@bazon.net>
Sun, 4 Aug 2013 18:44:17 +0000 (21:44 +0300)
Fix #255

lib/compress.js

index 9eed828..fcc3f31 100644 (file)
@@ -611,7 +611,7 @@ merge(Compressor.prototype, {
             // inherits from AST_Statement; however, an AST_Function
             // isn't really a statement.  This could byte in other
             // places too. :-( Wish JS had multiple inheritance.
-            return [ this ];
+            throw def;
         });
         function ev(node) {
             return node._eval();