fix t.buildMatchMemberExpression

This commit is contained in:
Sebastian McKenzie
2015-02-02 01:41:39 +11:00
parent 8a9aac3e68
commit 9fe1e37ca7

View File

@@ -421,7 +421,7 @@ t.buildMatchMemberExpression = function (match) {
var i = 0;
while (search.length) {
var node = search.unshift();
var node = search.shift();
if (t.isIdentifier(node)) {
// this part doesn't match
@@ -436,6 +436,7 @@ t.buildMatchMemberExpression = function (match) {
} else {
search.push(node.object);
search.push(node.property);
continue;
}
} else {
// we can't deal with this