jumps, try and definitions are statements too

This commit is contained in:
Mihai Bazon
2012-09-03 12:39:02 +03:00
parent 6d0db4ce14
commit f702264617
2 changed files with 4 additions and 4 deletions

View File

@@ -921,7 +921,7 @@ function OutputStream(options) {
function first_in_statement(output) {
var a = output.stack(), i = a.length, node = a[--i], p = a[--i];
while (i > 0) {
if (p instanceof AST_Statement)
if (p instanceof AST_Statement && p.body === node)
return true;
if ((p instanceof AST_Seq && p.first === node ) ||
(p instanceof AST_Call && p.expression === node ) ||