Add tests for the externalRegenerator transformer

This commit is contained in:
Aluísio Augusto Silva Gonçalves
2015-01-18 01:41:20 -02:00
parent d4cc8fefd1
commit 7e6da1d368
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
void function* () {
};

View File

@@ -0,0 +1,17 @@
"use strict";
var _interopRequire = function (obj) {
return obj && (obj["default"] || obj);
};
var _regeneratorRuntime = _interopRequire(require("regenerator/runtime-module"));
void _regeneratorRuntime.mark(function callee$0$0() {
return _regeneratorRuntime.wrap(function callee$0$0$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
case "end":
return context$1$0.stop();
}
}, callee$0$0, this);
});

View File

@@ -0,0 +1,3 @@
{
"optional": ["externalRegenerator"]
}