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:
@@ -1,6 +1,6 @@
|
||||
import foo, * as bar from "someModule";
|
||||
|
||||
export const myWord = Symbol("abc");
|
||||
export function* giveWord () {
|
||||
function* giveWord () {
|
||||
yield myWord;
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user