switch to my branch of regenerator - #1123, fixes #1015

This commit is contained in:
Sebastian McKenzie
2015-04-11 17:59:14 -07:00
parent cf5d2429b4
commit e362512af3
6 changed files with 40 additions and 38 deletions

View File

@@ -10,21 +10,8 @@ _core.Object.defineProperty(exports, "__esModule", {
value: true
});
var giveWord = _regeneratorRuntime.mark(function giveWord() {
return _regeneratorRuntime.wrap(function giveWord$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return myWord;
case 2:
case "end":
return context$1$0.stop();
}
}, giveWord, this);
});
exports.giveWord = giveWord;
var marked0$0 = [giveWord].map(_regeneratorRuntime.mark);
var _foo = require("someModule");
@@ -35,5 +22,19 @@ var bar = _interopRequireWildcard(_foo);
var myWord = _core.Symbol("abc");
exports.myWord = myWord;
function giveWord() {
return _regeneratorRuntime.wrap(function giveWord$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return myWord;
case 2:
case "end":
return context$1$0.stop();
}
}, marked0$0[0], this);
}
_foo2["default"];
bar;

View File

@@ -1,5 +1,19 @@
System.register(["babel-runtime/helpers/to-consumable-array", "babel-runtime/regenerator"], function (_export) {
var _toConsumableArray, _regeneratorRuntime, generator;
var _toConsumableArray, _regeneratorRuntime, marked0$0;
function generator() {
return _regeneratorRuntime.wrap(function generator$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return 1;
case 2:
case "end":
return context$1$0.stop();
}
}, marked0$0[0], this);
}
return {
setters: [function (_babelRuntimeHelpersToConsumableArray) {
@@ -10,23 +24,10 @@ System.register(["babel-runtime/helpers/to-consumable-array", "babel-runtime/reg
execute: function () {
"use strict";
generator = _regeneratorRuntime.mark(function generator() {
return _regeneratorRuntime.wrap(function generator$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return 1;
case 2:
case "end":
return context$1$0.stop();
}
}, generator, this);
});
_export("generator", generator);
marked0$0 = [generator].map(_regeneratorRuntime.mark);
foo.apply(undefined, _toConsumableArray(bar));
}
};
});
});