From 61ea720637971b4c8fa1032416583033fd4e0a86 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 21 Feb 2015 17:55:38 +1100 Subject: [PATCH] don't traverse into replacement breaks in for-of transformer - thanks @zloirock --- lib/babel/transformation/transformers/es6/for-of.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/babel/transformation/transformers/es6/for-of.js b/lib/babel/transformation/transformers/es6/for-of.js index 8b5c36d6c8..2343a57e09 100644 --- a/lib/babel/transformation/transformers/es6/for-of.js +++ b/lib/babel/transformation/transformers/es6/for-of.js @@ -55,6 +55,7 @@ var breakVisitor = { ); if (state.wrapReturn) ret = state.wrapReturn(ret); + this.skip(); return [ret, node]; } }