michaelficarra/esvalid — pull request #20 by Constellation (2014-07-12 14:46:40+00:00)
Title: Use esutils.ast.isProblematicIfStatement

I've extracted `esmangle`'s `isProblematicIfStatement` routine to `esutils`.
It covers edge cases. For example,
```js
{
type: "IfStatement",
test: EXPR,
consequent: {
type: "LabeledStatement",
body: {type: "IfStatement", test: EXPR, consequent: STMT}
},
alternate: STMT
}
```
is also an invalid node.