From 157f5c3304e8b85be8ada99a634393ea22e45045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Augusto=20Silva=20Gon=C3=A7alves?= Date: Mon, 19 Jan 2015 10:54:33 -0200 Subject: [PATCH] Remove regenerator edge case from selfContained test Right now exporting a generator doesn't work because we hoist the export assignment before the function expression assignment. This will be dealt with at another time as it is not specific to this transformer. --- .../transformation/optional-self-contained/full/actual.js | 2 +- .../transformation/optional-self-contained/full/expected.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/fixtures/transformation/optional-self-contained/full/actual.js b/test/fixtures/transformation/optional-self-contained/full/actual.js index 3e8b1bcdbc..544c01be3d 100644 --- a/test/fixtures/transformation/optional-self-contained/full/actual.js +++ b/test/fixtures/transformation/optional-self-contained/full/actual.js @@ -1,6 +1,6 @@ import foo, * as bar from "someModule"; export const myWord = Symbol("abc"); -export function* giveWord () { +function* giveWord () { yield myWord; } diff --git a/test/fixtures/transformation/optional-self-contained/full/expected.js b/test/fixtures/transformation/optional-self-contained/full/expected.js index cbd7e48fbf..5c31f034a6 100644 --- a/test/fixtures/transformation/optional-self-contained/full/expected.js +++ b/test/fixtures/transformation/optional-self-contained/full/expected.js @@ -19,7 +19,6 @@ var giveWord = _regeneratorRuntime.mark(function giveWord() { }, giveWord, this); }); -exports.giveWord = giveWord; var foo = _to5Runtime.interopRequire(require("someModule")); var bar = _to5Runtime.interopRequireWildcard(require("someModule"));