diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index a7bd66ab0f..4cabba5d9d 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -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