From 921d459f130af4f2b6c7848fa7eff0ba9388e9aa Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 14 Nov 2014 19:38:29 +1100 Subject: [PATCH] fix transformation let scoping hoisting test --- .../transformation/let-scoping/hoisting/expected.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fixtures/transformation/let-scoping/hoisting/expected.js b/test/fixtures/transformation/let-scoping/hoisting/expected.js index f8c25911e4..a868d5a90b 100644 --- a/test/fixtures/transformation/let-scoping/hoisting/expected.js +++ b/test/fixtures/transformation/let-scoping/hoisting/expected.js @@ -1,12 +1,12 @@ "use strict"; for (var _iterator = [1, 2, 3][Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { - var i = _step.value; var x; - (function (i) { + (function () { + var i = _step.value; x = 5; fns.push(function () { return i * x; }); - })(i); + })(); }