aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-08-04 21:44:17 +0300
committerMihai Bazon <mihai@bazon.net>2013-08-04 21:44:17 +0300
commit964d5b9aa47bad28bc200de90f3acd6d899b2733 (patch)
treeed961022d755a070b19c3fcbcb6f6a9cb23b71b3
parentb7adbcab1f4c9e846ae0b9ec3fd32991d62b68cf (diff)
downloadtracifyjs-964d5b9aa47bad28bc200de90f3acd6d899b2733.tar.gz
tracifyjs-964d5b9aa47bad28bc200de90f3acd6d899b2733.zip
Don't pretend to evaluate lambdas
Fix #255
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
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();