From 887ffed84cba35d8ebf9689f9e552e5ede607720 Mon Sep 17 00:00:00 2001 From: guybedford Date: Mon, 18 May 2015 23:35:09 +0200 Subject: [PATCH] system hoist bug test case --- .../es6.modules-system/hoist-function-exports/actual.js | 2 ++ .../es6.modules-system/hoist-function-exports/expected.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/actual.js b/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/actual.js index ea23c63431..64ebb67787 100644 --- a/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/actual.js +++ b/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/actual.js @@ -6,6 +6,8 @@ export function nextOdd(n) { export var p = 5; +for (var a in b) ; + export var isOdd = (function (isEven) { return function (n) { return !isEven(n); diff --git a/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js b/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js index ad3421dd2e..015638ae6d 100644 --- a/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js +++ b/test/core/fixtures/transformation/es6.modules-system/hoist-function-exports/expected.js @@ -1,7 +1,7 @@ System.register(["./evens"], function (_export) { "use strict"; - var isEven, p, isOdd; + var isEven, p, a, isOdd; _export("nextOdd", nextOdd); @@ -16,6 +16,8 @@ System.register(["./evens"], function (_export) { execute: function () { p = 5; + for (a in b) ; + _export("p", p); isOdd = (function (isEven) {