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.
This commit is contained in:
Aluísio Augusto Silva Gonçalves
2015-01-19 10:54:33 -02:00
parent e2bf61379f
commit 157f5c3304
2 changed files with 1 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import foo, * as bar from "someModule";
export const myWord = Symbol("abc");
export function* giveWord () {
function* giveWord () {
yield myWord;
}

View File

@@ -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"));