a LabeledStatement should be in fact a StatementWithBody
authorMihai Bazon <mihai@bazon.net>
Mon, 3 Sep 2012 09:05:10 +0000 (12:05 +0300)
committerMihai Bazon <mihai@bazon.net>
Mon, 3 Sep 2012 09:05:10 +0000 (12:05 +0300)
commitd7c1dc6c0578b55eefc3bc94556146dce6e1a8cb
treef5293d83b48fcd91e8924b4a3334f79ab4ba6163
parentd6efa8b28dc0a937bc154bf5f2e5d5450be5c1d5
a LabeledStatement should be in fact a StatementWithBody

This fixes output for:

    if (foo) {
        moo: if (bar) {
            break moo;
        }
    } else {
        baz();
    }

(the labeled statement must be outputted inside brackets)
lib/ast.js
lib/compress.js
lib/output.js
lib/parse.js
test/run-tests.js