fix destructuring in switch/case statements - closes #346

This commit is contained in:
Sebastian McKenzie 2014-12-29 01:26:51 +11:00
parent 32b94899a6
commit ceb32816d7

View File

@ -268,6 +268,7 @@ exports.VariableDeclaration = function (node, parent, file, scope) {
}
if (!t.isProgram(parent) && !t.isBlockStatement(parent)) {
declar = null;
for (i in nodes) {
node = nodes[i];