From 9fe1e37ca7cbcda03ab426d23c5a9990da95632d Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 2 Feb 2015 01:41:39 +1100 Subject: [PATCH] fix t.buildMatchMemberExpression --- lib/6to5/types/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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