@@ -46,7 +46,7 @@
|
||||
"output-file-sync": "^1.1.0",
|
||||
"path-is-absolute": "^1.0.0",
|
||||
"private": "^0.1.6",
|
||||
"regenerator-babel": "0.8.13-2",
|
||||
"regenerator": "https://github.com/sebmck/regenerator/archive/block-hoist.tar.gz",
|
||||
"regexpu": "^1.1.2",
|
||||
"repeating": "^1.1.2",
|
||||
"shebang-regex": "^1.0.0",
|
||||
|
||||
@@ -7,15 +7,15 @@ import * as t from "./types";
|
||||
|
||||
extend(estraverse.VisitorKeys, t.VISITOR_KEYS);
|
||||
|
||||
// regenerator-babel/ast-types
|
||||
// regenerator/ast-types
|
||||
|
||||
var def = types.Type.def;
|
||||
var or = types.Type.or;
|
||||
|
||||
def("File")
|
||||
.bases("Node")
|
||||
.build("program")
|
||||
.field("program", def("Program"));
|
||||
//def("File")
|
||||
// .bases("Node")
|
||||
// .build("program")
|
||||
// .field("program", def("Program"));
|
||||
|
||||
def("AssignmentPattern")
|
||||
.bases("Pattern")
|
||||
|
||||
@@ -4,4 +4,4 @@ if (global._babelPolyfill) {
|
||||
global._babelPolyfill = true;
|
||||
|
||||
import "core-js/shim";
|
||||
import "regenerator-babel/runtime";
|
||||
import "regenerator/runtime";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import regenerator from "regenerator-babel";
|
||||
import regenerator from "regenerator";
|
||||
import * as t from "../../../types";
|
||||
|
||||
export function check(node) {
|
||||
|
||||
@@ -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;
|
||||
@@ -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));
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user