fix code generator for this case:
authorMihai Bazon <mihai@bazon.net>
Tue, 28 Aug 2012 12:29:58 +0000 (15:29 +0300)
committerMihai Bazon <mihai@bazon.net>
Tue, 28 Aug 2012 12:29:58 +0000 (15:29 +0300)
commit7fcb6bcb1270d1688512e25704125edb5b35b3c5
tree6c0b5b40cd2731d8f6f15eae6f816571ef05adcd
parentce8e8d57c0d346dba9527b7a11b03364ce9ad1bb
fix code generator for this case:

if (foo) {
  with (bar)
    if (baz)
      x();
} else y();

(the compressor removes the brackets since the consequent consists of a
single statement, but the codegen must include the brackets because
otherwise the `else` would refer to the inner `if`)
lib/ast.js
lib/output.js