diff --git a/test/fixtures/transformation/es6-modules-system/hoist-function-exports/actual.js b/test/fixtures/transformation/es6-modules-system/hoist-function-exports/actual.js index 3c40b7d1c1..ea23c63431 100644 --- a/test/fixtures/transformation/es6-modules-system/hoist-function-exports/actual.js +++ b/test/fixtures/transformation/es6-modules-system/hoist-function-exports/actual.js @@ -1,9 +1,11 @@ import { isEven } from "./evens"; export function nextOdd(n) { - return isEven(n) ? n + 1 : n + 2; + return p = isEven(n) ? n + 1 : n + 2; } +export var p = 5; + export var isOdd = (function (isEven) { return function (n) { return !isEven(n); diff --git a/test/fixtures/transformation/es6-modules-system/hoist-function-exports/expected.js b/test/fixtures/transformation/es6-modules-system/hoist-function-exports/expected.js index c407df488a..e74627e56e 100644 --- a/test/fixtures/transformation/es6-modules-system/hoist-function-exports/expected.js +++ b/test/fixtures/transformation/es6-modules-system/hoist-function-exports/expected.js @@ -1,8 +1,10 @@ System.register(["./evens"], function (_export) { + var p; + _export("nextOdd", nextOdd); function nextOdd(n) { - return isEven(n) ? n + 1 : n + 2; + return _export("p", p = isEven(n) ? n + 1 : n + 2); } var _evens; @@ -14,6 +16,8 @@ System.register(["./evens"], function (_export) { "use strict"; var isEven = _evens.isEven; + _export("p", p = 5); + var isOdd = _export("isOdd", (function (isEven) { return function (n) { return !isEven(n);