From: Mihai Bazon Date: Sun, 4 Aug 2013 18:44:17 +0000 (+0300) Subject: Don't pretend to evaluate lambdas X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=964d5b9aa47bad28bc200de90f3acd6d899b2733;p=UglifyJS.git Don't pretend to evaluate lambdas Fix #255 --- diff --git a/lib/compress.js b/lib/compress.js index 9eed8280..fcc3f31e 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -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();