fix destructuring in switch/case statements - closes #346
This commit is contained in:
parent
32b94899a6
commit
ceb32816d7
@ -268,6 +268,7 @@ exports.VariableDeclaration = function (node, parent, file, scope) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!t.isProgram(parent) && !t.isBlockStatement(parent)) {
|
if (!t.isProgram(parent) && !t.isBlockStatement(parent)) {
|
||||||
|
declar = null;
|
||||||
|
|
||||||
for (i in nodes) {
|
for (i in nodes) {
|
||||||
node = nodes[i];
|
node = nodes[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user