aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-08-07 12:04:58 +0300
committerMihai Bazon <mihai@bazon.net>2013-08-07 12:04:58 +0300
commit4c4dc2137cc256bb1e7a3827b4c96c95be42782e (patch)
treee77085a920deb5aa11adab159174dc1952649a02 /lib
parent4aa4b3e69493097c6674ad79a2300a64f77842cd (diff)
downloadtracifyjs-4c4dc2137cc256bb1e7a3827b4c96c95be42782e.tar.gz
tracifyjs-4c4dc2137cc256bb1e7a3827b4c96c95be42782e.zip
Don't drop unused setter argument.
Fix #257
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index fcc3f31e..3bf9f672 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -948,7 +948,7 @@ merge(Compressor.prototype, {
// pass 3: we should drop declarations not in_use
var tt = new TreeTransformer(
function before(node, descend, in_list) {
- if (node instanceof AST_Lambda) {
+ if (node instanceof AST_Lambda && !(node instanceof AST_Accessor)) {
for (var a = node.argnames, i = a.length; --i >= 0;) {
var sym = a[i];
if (sym.unreferenced()) {