Merge branch 'master' into feat-use-charcode-constants

This commit is contained in:
Sven SAULEAU 2017-11-07 18:09:52 +01:00
commit 7dfa79f4c8
No known key found for this signature in database
GPG Key ID: F5464AC83B687AD1
627 changed files with 4712 additions and 1783 deletions

View File

@ -31,27 +31,34 @@ function istanbulHacks() {
}
let envOpts = {
loose: true
loose: true,
exclude: ["transform-typeof-symbol"],
};
module.exports = {
const config = {
comments: false,
presets: [
["@babel/env", envOpts],
"@babel/stage-0",
"@babel/flow"
],
env: {
cov: {
auxiliaryCommentBefore: "istanbul ignore next",
plugins: [istanbulHacks]
}
}
plugins: [
["@babel/proposal-class-properties", { loose: true }],
"@babel/proposal-export-namespace",
"@babel/proposal-numeric-separator",
["@babel/proposal-object-rest-spread", { useBuiltIns: true}],
]
};
if (process.env.BABEL_ENV === "cov") {
config.auxiliaryCommentBefore = "istanbul ignore next";
config.plugins.push(istanbulHacks);
}
if (process.env.BABEL_ENV === "development") {
envOpts.targets = {
node: "current"
};
envOpts.debug = true;
}
module.exports = config;

View File

@ -21,9 +21,4 @@ experimental/babel-preset-env/test/debug-fixtures
packages/babel-standalone/babel.js
packages/babel-standalone/babel.min.js
packages/babylon/build
packages/babylon/scripts
packages/babylon/test/expressions
# Prettier tries to insert trailing commas in function calls, which Node.js
# doesn't natively support. This causes an error when loading the Gulp tasks.
packages/babel-standalone/src/gulpTasks.js

View File

@ -5,11 +5,28 @@
],
"rules": {
"curly": ["error", "multi-line"],
"prettier/prettier": ["error", { "trailingComma": "es5" }],
"prettier/prettier": "error",
"no-case-declarations": "error"
},
"env": {
"node": true,
"mocha": true
}
"node": true
},
"overrides": [
{
"files": [
"packages/*/src/**/*.js",
"experimental/*/src/**/*.js",
"codemods/*/src/**/*.js"
],
"rules": {
"no-undefined-identifier": "error"
}
},
{
"files": [ "packages/*/test/**/*.js", "test/**/*.js" ],
"env": {
"mocha": true
}
}
]
}

16
.prettierrc Normal file
View File

@ -0,0 +1,16 @@
{
"trailingComma": "es5",
"overrides": [{
"files": [
"**/experimental/*/src/**/*.js",
"**/experimental/*/test/**/*.js",
"**/codemods/*/src/**/*.js",
"**/codemods/*/test/**/*.js",
"**/packages/*/src/**/*.js",
"**/packages/*/test/**/*.js"
],
"options": {
"trailingComma": "all"
}
}]
}

View File

@ -116,7 +116,15 @@ function webpackBuild() {
// their project.json (or a ".babelrc" file). We need to ignore
// those as we're using our own Babel options.
babelrc: false,
presets: ["@babel/env"],
presets: [
[
"@babel/env",
{
loose: true,
exclude: ["transform-typeof-symbol"],
},
],
],
},
},
{
@ -128,7 +136,16 @@ function webpackBuild() {
// their project.json (or a ".babelrc" file). We need to ignore
// those as we're using our own Babel options.
babelrc: false,
presets: ["@babel/env", "@babel/stage-0"],
presets: [
[
"@babel/env",
{
loose: true,
exclude: ["transform-typeof-symbol"],
},
],
["@babel/stage-0", { loose: true }],
],
},
},
],

View File

@ -114,7 +114,7 @@ publish:
make test
# not using lerna independent mode atm, so only update packages that have changed since we use ^
# --only-explicit-updates
./node_modules/.bin/lerna publish --force-publish=* --npm-tag=next --exact --skip-temp-tag
./node_modules/.bin/lerna publish --force-publish=* --exact --skip-temp-tag
make clean
bootstrap:

View File

@ -1,6 +1,6 @@
{
"name": "@babel/plugin-codemod-optional-catch-binding",
"version": "7.0.0-beta.5",
"version": "7.0.0-beta.31",
"description": "Remove unused catch bindings",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-remove-unused-catch-binding",
"license": "MIT",
@ -9,13 +9,13 @@
"@babel/plugin"
],
"dependencies": {
"@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.5"
"@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.31"
},
"peerDependencies": {
"@babel/core": ">=7.0.0-beta.4 <7.0.0-rc.0"
"@babel/core": "7.0.0-beta.31"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.5",
"@babel/helper-plugin-test-runner": "7.0.0-beta.5"
"@babel/core": "7.0.0-beta.31",
"@babel/helper-plugin-test-runner": "7.0.0-beta.31"
}
}

View File

@ -286,12 +286,12 @@ var b = new Map();
**Out (if environment doesn't support it)**
```js
import "@babel/polyfill/core-js/modules/es6.promise";
import "core-js/modules/es6.promise";
var a = new Promise();
```
```js
import "@babel/polyfill/core-js/modules/es6.map";
import "core-js/modules/es6.map";
var b = new Map();
```
@ -322,8 +322,8 @@ import "@babel/polyfill";
**Out (different based on environment)**
```js
import "@babel/polyfill/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/core-js/modules/es7.string.pad-end";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
```
#### `useBuiltIns: false`

View File

@ -1,6 +1,6 @@
{
"name": "@babel/preset-env",
"version": "7.0.0-beta.5",
"version": "7.0.0-beta.31",
"description": "A Babel preset for each environment.",
"author": "Henry Zhu <hi@henryzoo.com>",
"homepage": "https://babeljs.io/",
@ -11,52 +11,52 @@
"build-data": "node ./scripts/build-data.js"
},
"dependencies": {
"@babel/plugin-check-constants": "7.0.0-beta.5",
"@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.5",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.5",
"@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.5",
"@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.5",
"@babel/plugin-syntax-async-generators": "7.0.0-beta.5",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.5",
"@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.5",
"@babel/plugin-transform-arrow-functions": "7.0.0-beta.5",
"@babel/plugin-transform-async-to-generator": "7.0.0-beta.5",
"@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.5",
"@babel/plugin-transform-block-scoping": "7.0.0-beta.5",
"@babel/plugin-transform-classes": "7.0.0-beta.5",
"@babel/plugin-transform-computed-properties": "7.0.0-beta.5",
"@babel/plugin-transform-destructuring": "7.0.0-beta.5",
"@babel/plugin-transform-duplicate-keys": "7.0.0-beta.5",
"@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.5",
"@babel/plugin-transform-for-of": "7.0.0-beta.5",
"@babel/plugin-transform-function-name": "7.0.0-beta.5",
"@babel/plugin-transform-literals": "7.0.0-beta.5",
"@babel/plugin-transform-modules-amd": "7.0.0-beta.5",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.5",
"@babel/plugin-transform-modules-systemjs": "7.0.0-beta.5",
"@babel/plugin-transform-modules-umd": "7.0.0-beta.5",
"@babel/plugin-transform-new-target": "7.0.0-beta.5",
"@babel/plugin-transform-object-super": "7.0.0-beta.5",
"@babel/plugin-transform-parameters": "7.0.0-beta.5",
"@babel/plugin-transform-regenerator": "7.0.0-beta.5",
"@babel/plugin-transform-shorthand-properties": "7.0.0-beta.5",
"@babel/plugin-transform-spread": "7.0.0-beta.5",
"@babel/plugin-transform-sticky-regex": "7.0.0-beta.5",
"@babel/plugin-transform-template-literals": "7.0.0-beta.5",
"@babel/plugin-transform-typeof-symbol": "7.0.0-beta.5",
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.5",
"@babel/plugin-check-constants": "7.0.0-beta.31",
"@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.31",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.31",
"@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.31",
"@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.31",
"@babel/plugin-syntax-async-generators": "7.0.0-beta.31",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.31",
"@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.31",
"@babel/plugin-transform-arrow-functions": "7.0.0-beta.31",
"@babel/plugin-transform-async-to-generator": "7.0.0-beta.31",
"@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.31",
"@babel/plugin-transform-block-scoping": "7.0.0-beta.31",
"@babel/plugin-transform-classes": "7.0.0-beta.31",
"@babel/plugin-transform-computed-properties": "7.0.0-beta.31",
"@babel/plugin-transform-destructuring": "7.0.0-beta.31",
"@babel/plugin-transform-duplicate-keys": "7.0.0-beta.31",
"@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.31",
"@babel/plugin-transform-for-of": "7.0.0-beta.31",
"@babel/plugin-transform-function-name": "7.0.0-beta.31",
"@babel/plugin-transform-literals": "7.0.0-beta.31",
"@babel/plugin-transform-modules-amd": "7.0.0-beta.31",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.31",
"@babel/plugin-transform-modules-systemjs": "7.0.0-beta.31",
"@babel/plugin-transform-modules-umd": "7.0.0-beta.31",
"@babel/plugin-transform-new-target": "7.0.0-beta.31",
"@babel/plugin-transform-object-super": "7.0.0-beta.31",
"@babel/plugin-transform-parameters": "7.0.0-beta.31",
"@babel/plugin-transform-regenerator": "7.0.0-beta.31",
"@babel/plugin-transform-shorthand-properties": "7.0.0-beta.31",
"@babel/plugin-transform-spread": "7.0.0-beta.31",
"@babel/plugin-transform-sticky-regex": "7.0.0-beta.31",
"@babel/plugin-transform-template-literals": "7.0.0-beta.31",
"@babel/plugin-transform-typeof-symbol": "7.0.0-beta.31",
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.31",
"browserslist": "^2.4.0",
"invariant": "^2.2.2",
"semver": "^5.3.0"
},
"peerDependencies": {
"@babel/core": ">=7.0.0-beta.4 <7.0.0-rc.0"
"@babel/core": "7.0.0-beta.31"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.5",
"@babel/core": "7.0.0-beta.5",
"@babel/helper-fixtures": "7.0.0-beta.5",
"@babel/helper-plugin-test-runner": "7.0.0-beta.5",
"@babel/cli": "7.0.0-beta.31",
"@babel/core": "7.0.0-beta.31",
"@babel/helper-fixtures": "7.0.0-beta.31",
"@babel/helper-plugin-test-runner": "7.0.0-beta.31",
"compat-table": "kangax/compat-table#957f1ff15972e8fb2892a172f985e9af27bf1c75",
"electron-to-chromium": "^1.3.27"
}

View File

@ -1,5 +1,11 @@
//@flow
// @flow
import { logEntryPolyfills } from "./debug";
import {
createImport,
isPolyfillSource,
isRequire,
type RequireType,
} from "./utils";
type Plugin = {
visitor: Object,
@ -8,52 +14,7 @@ type Plugin = {
name: string,
};
type RequireType = "require" | "import";
function isPolyfillSource(value: string): boolean {
return value === "@babel/polyfill";
}
export default function({ types: t }: { types: Object }): Plugin {
function createImportDeclaration(polyfill: string): Object {
const declar = t.importDeclaration([], t.stringLiteral(polyfill));
declar._blockHoist = 3;
return declar;
}
function createRequireStatement(polyfill: string): Object {
return t.expressionStatement(
t.callExpression(t.identifier("require"), [t.stringLiteral(polyfill)]),
);
}
function isRequire(path: Object): boolean {
return (
t.isExpressionStatement(path.node) &&
t.isCallExpression(path.node.expression) &&
t.isIdentifier(path.node.expression.callee) &&
path.node.expression.callee.name === "require" &&
path.node.expression.arguments.length === 1 &&
t.isStringLiteral(path.node.expression.arguments[0]) &&
isPolyfillSource(path.node.expression.arguments[0].value)
);
}
function createImport(
polyfill: string,
requireType: RequireType,
core: ?boolean,
): Object {
if (core) {
polyfill = `@babel/polyfill/lib/core-js/modules/${polyfill}`;
}
if (requireType === "import") {
return createImportDeclaration(polyfill);
}
return createRequireStatement(polyfill);
}
function createImports(
polyfills: Array<string>,
requireType: RequireType,
@ -62,15 +23,10 @@ export default function({ types: t }: { types: Object }): Plugin {
const items = Array.isArray(polyfills) ? new Set(polyfills) : polyfills;
const imports = [];
items.forEach(p => imports.push(createImport(p, requireType, true)));
items.forEach(p => imports.push(createImport(t, p, requireType)));
if (regenerator) {
imports.push(
createImport(
"@babel/polyfill/lib/regenerator-runtime/runtime",
requireType,
),
);
imports.push(createImport(t, "regenerator-runtime", requireType));
}
return imports;
@ -90,7 +46,7 @@ export default function({ types: t }: { types: Object }): Plugin {
},
Program(path, state) {
path.get("body").forEach(bodyPath => {
if (isRequire(bodyPath)) {
if (isRequire(t, bodyPath)) {
bodyPath.replaceWithMultiple(
createImports(
state.opts.polyfills,

View File

@ -1,7 +1,7 @@
//@flow
// @flow
import { definitions } from "./built-in-definitions";
import { logUsagePolyfills } from "./debug";
import { createImport, isPolyfillSource, isRequire } from "./utils";
type Plugin = {
visitor: Object,
@ -9,10 +9,6 @@ type Plugin = {
name: string,
};
function isPolyfillSource(value: string): boolean {
return value === "@babel/polyfill";
}
// function warnOnInstanceMethod() {
// state.opts.debug &&
// console.warn(
@ -24,6 +20,11 @@ function has(obj: Object, key: string): boolean {
return Object.prototype.hasOwnProperty.call(obj, key);
}
function getType(target: any): string {
if (Array.isArray(target)) return "array";
return typeof target;
}
// function getObjectString(node: Object): string {
// if (node.type === "Identifier") {
// return node.name;
@ -33,16 +34,6 @@ function has(obj: Object, key: string): boolean {
// return node.name;
// }
const modulePathMap = {
"regenerator-runtime": "@babel/polyfill/lib/regenerator-runtime/runtime",
};
const getModulePath = module => {
return (
modulePathMap[module] || `@babel/polyfill/lib/core-js/modules/${module}`
);
};
export default function({ types: t }: { types: Object }): Plugin {
function addImport(
path: Object,
@ -51,15 +42,8 @@ export default function({ types: t }: { types: Object }): Plugin {
): void {
if (builtIn && !builtIns.has(builtIn)) {
builtIns.add(builtIn);
const importDec = t.importDeclaration(
[],
t.stringLiteral(getModulePath(builtIn)),
);
importDec._blockHoist = 3;
const programPath = path.find(path => path.isProgram());
programPath.unshiftContainer("body", importDec);
programPath.unshiftContainer("body", createImport(t, builtIn));
}
}
@ -82,18 +66,6 @@ export default function({ types: t }: { types: Object }): Plugin {
}
}
function isRequire(path: Object): boolean {
return (
t.isExpressionStatement(path.node) &&
t.isCallExpression(path.node.expression) &&
t.isIdentifier(path.node.expression.callee) &&
path.node.expression.callee.name === "require" &&
path.node.expression.arguments.length === 1 &&
t.isStringLiteral(path.node.expression.arguments[0]) &&
isPolyfillSource(path.node.expression.arguments[0].value)
);
}
const addAndRemovePolyfillImports = {
ImportDeclaration(path) {
if (
@ -111,7 +83,7 @@ export default function({ types: t }: { types: Object }): Plugin {
Program: {
enter(path) {
path.get("body").forEach(bodyPath => {
if (isRequire(bodyPath)) {
if (isRequire(t, bodyPath)) {
console.warn(
`
When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed.
@ -176,14 +148,31 @@ export default function({ types: t }: { types: Object }): Plugin {
const prop = node.property;
if (!t.isReferenced(obj, node)) return;
// doesn't reference the global
if (path.scope.getBindingIdentifier(obj.name)) return;
if (has(definitions.staticMethods, obj.name)) {
const staticMethods = definitions.staticMethods[obj.name];
if (has(staticMethods, prop.name)) {
const builtIn = staticMethods[prop.name];
let instanceType;
let evaluatedPropType = obj.name;
let propName = prop.name;
if (node.computed) {
if (t.isStringLiteral(prop)) {
propName = prop.value;
} else {
const res = path.get("property").evaluate();
if (res.confident && res.value) {
propName = res.value;
}
}
}
if (path.scope.getBindingIdentifier(obj.name)) {
const result = path.get("object").evaluate();
if (result.value) {
instanceType = getType(result.value);
} else if (result.deopt && result.deopt.isIdentifier()) {
evaluatedPropType = result.deopt.node.name;
}
}
if (has(definitions.staticMethods, evaluatedPropType)) {
const staticMethods = definitions.staticMethods[evaluatedPropType];
if (has(staticMethods, propName)) {
const builtIn = staticMethods[propName];
addUnsupported(path, state.opts.polyfills, builtIn, this.builtIns);
// if (obj.name === "Array" && prop.name === "from") {
// addImport(
@ -195,35 +184,13 @@ export default function({ types: t }: { types: Object }): Plugin {
}
}
if (
!node.computed &&
t.isIdentifier(prop) &&
has(definitions.instanceMethods, prop.name)
) {
if (has(definitions.instanceMethods, propName)) {
//warnOnInstanceMethod(state, getObjectString(node));
const builtIn = definitions.instanceMethods[prop.name];
addUnsupported(path, state.opts.polyfills, builtIn, this.builtIns);
} else if (node.computed) {
if (
t.isStringLiteral(prop) &&
has(definitions.instanceMethods, prop.value)
) {
const builtIn = definitions.instanceMethods[prop.value];
//warnOnInstanceMethod(state, `${obj.name}['${prop.value}']`);
addUnsupported(path, state.opts.polyfills, builtIn, this.builtIns);
} else {
const res = path.get("property").evaluate();
if (res.confident) {
const builtIn = definitions.instanceMethods[res.value];
//warnOnInstanceMethod(state, `${obj.name}['${res.value}']`);
addUnsupported(
path.get("property"),
state.opts.polyfills,
builtIn,
this.builtIns,
);
}
let builtIn = definitions.instanceMethods[propName];
if (instanceType) {
builtIn = builtIn.filter(item => item.includes(instanceType));
}
addUnsupported(path, state.opts.polyfills, builtIn, this.builtIns);
}
},

View File

@ -61,3 +61,42 @@ export const filterStageFromList = (list: any, stageList: any) => {
return result;
}, {});
};
export const isPolyfillSource = (source: string): boolean =>
source === "@babel/polyfill";
export const isRequire = (t: Object, path: Object): boolean =>
t.isExpressionStatement(path.node) &&
t.isCallExpression(path.node.expression) &&
t.isIdentifier(path.node.expression.callee) &&
path.node.expression.callee.name === "require" &&
path.node.expression.arguments.length === 1 &&
t.isStringLiteral(path.node.expression.arguments[0]) &&
isPolyfillSource(path.node.expression.arguments[0].value);
const modulePathMap = {
"regenerator-runtime": "regenerator-runtime/runtime",
};
export const getModulePath = (mod: string) =>
modulePathMap[mod] || `core-js/modules/${mod}`;
export type RequireType = "require" | "import";
export const createImport = (
t: Object,
polyfill: string,
requireType?: RequireType = "import",
): Object => {
const modulePath = getModulePath(polyfill);
if (requireType === "import") {
const declar = t.importDeclaration([], t.stringLiteral(modulePath));
declar._blockHoist = 3;
return declar;
}
return t.expressionStatement(
t.callExpression(t.identifier("require"), [t.stringLiteral(modulePath)]),
);
};

View File

@ -1,3 +1,3 @@
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "core-js/modules/es6.symbol";
import "core-js/modules/web.dom.iterable";
Symbol.iterator in arr;

View File

@ -1,3 +1,3 @@
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "core-js/modules/es6.symbol";
import "core-js/modules/web.dom.iterable";
arr[Symbol.iterator]();

View File

@ -1,3 +1,3 @@
function* a() {
yield 1;
}
}

View File

@ -1,4 +1,4 @@
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "core-js/modules/web.dom.iterable";
function* a() {
yield* 1;

View File

@ -1,2 +1,2 @@
import "@babel/polyfill/lib/core-js/modules/es6.typed.data-view";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.apply";
import "core-js/modules/es6.typed.data-view";
import "core-js/modules/es6.reflect.apply";

View File

@ -1 +1 @@
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "regenerator-runtime/runtime";

View File

@ -35,4 +35,4 @@ i[asdf]; // computed with identifier
j["copyWithin"]; // computed with template
var _k = k,
_a = _k[asdf]; // computed
_a = _k[asdf]; // computed

View File

@ -0,0 +1,12 @@
var objectClass = Object;
var arrayInstance = [];
var assignStr = "assign";
var entriesStr = "entries";
var valuesStr = "values";
var inclidesStr = "includes";
var findStr = "find";
// Allow static methods be assigned to variables only directly in the module.
externalVar[valuesStr]; // don't include
objectClass[assignStr]({}); // include
arrayInstance[entriesStr]({}); // don't include

View File

@ -0,0 +1,14 @@
import "core-js/modules/es6.object.assign";
var objectClass = Object;
var arrayInstance = [];
var assignStr = "assign";
var entriesStr = "entries";
var valuesStr = "values";
var inclidesStr = "includes";
var findStr = "find"; // Allow static methods be assigned to variables only directly in the module.
externalVar[valuesStr]; // don't include
objectClass[assignStr]({}); // include
arrayInstance[entriesStr]({}); // don't include

View File

@ -0,0 +1,8 @@
{
"presets": [
["../../../../lib", {
"useBuiltIns": "usage",
"modules": false
}]
]
}

View File

@ -0,0 +1,8 @@
var arrayInstance = [];
var inclidesStr = "includes";
var findStr = "find";
// Allow instance methods be assigned to variables.
arrayInstance[inclidesStr](); // include
externalVar[findStr]; // include

View File

@ -0,0 +1,9 @@
import "core-js/modules/es6.array.find";
import "core-js/modules/es7.array.includes";
var arrayInstance = [];
var inclidesStr = "includes";
var findStr = "find"; // Allow instance methods be assigned to variables.
arrayInstance[inclidesStr](); // include
externalVar[findStr]; // include

View File

@ -0,0 +1,8 @@
{
"presets": [
["../../../../lib", {
"useBuiltIns": "usage",
"modules": false
}]
]
}

View File

@ -20,4 +20,4 @@ String.prototype.startsWith.call; // prototype.call
var {
codePointAt,
endsWith
} = k; // destructuring
} = k; // destructuring

View File

@ -1,19 +1,19 @@
import "@babel/polyfill/lib/core-js/modules/es6.regexp.split";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.replace";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.search";
import "@babel/polyfill/lib/core-js/modules/es6.array.copy-within";
import "@babel/polyfill/lib/core-js/modules/es6.string.ends-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.code-point-at";
import "@babel/polyfill/lib/core-js/modules/es6.string.starts-with";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es6.array.fill";
import "@babel/polyfill/lib/core-js/modules/es6.array.find-index";
import "@babel/polyfill/lib/core-js/modules/es6.array.find";
import "@babel/polyfill/lib/core-js/modules/es7.array.includes";
import "@babel/polyfill/lib/core-js/modules/es6.string.includes";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "core-js/modules/es6.regexp.split";
import "core-js/modules/es6.regexp.replace";
import "core-js/modules/es6.regexp.search";
import "core-js/modules/es6.array.copy-within";
import "core-js/modules/es6.string.ends-with";
import "core-js/modules/es6.string.code-point-at";
import "core-js/modules/es6.string.starts-with";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es6.array.fill";
import "core-js/modules/es6.array.find-index";
import "core-js/modules/es6.array.find";
import "core-js/modules/es7.array.includes";
import "core-js/modules/es6.string.includes";
import "core-js/modules/es6.map";
import "core-js/modules/es6.array.from";
Array.from; // static function
Map; // top level built-in

View File

@ -33,4 +33,4 @@ j[`copyWithin`]; // computed with template
var {
[asdf]: _a
} = k; // computed
} = k; // computed

View File

@ -1,9 +1,9 @@
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.match";
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.map";
import "core-js/modules/es6.array.from";
Array.from; // static method
Map; // built-in

View File

@ -1,5 +1,5 @@
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es6.promise";
import "regenerator-runtime/runtime";
var a = function () {
var _ref = _asyncToGenerator(

View File

@ -1,4 +1,4 @@
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "regenerator-runtime/runtime";
var _marked =
/*#__PURE__*/

View File

@ -1,5 +1,5 @@
"use strict";
require("@babel/polyfill/lib/core-js/modules/es6.promise");
require("core-js/modules/es6.promise");
Promise;

View File

@ -1,9 +1,9 @@
import "@babel/polyfill/lib/core-js/modules/es7.object.values";
import "@babel/polyfill/lib/core-js/modules/es7.object.entries";
import "@babel/polyfill/lib/core-js/modules/es7.object.get-own-property-descriptors";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "core-js/modules/es7.object.values";
import "core-js/modules/es7.object.entries";
import "core-js/modules/es7.object.get-own-property-descriptors";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
a ** b;

View File

@ -1,8 +1,8 @@
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.map";
async function a() {
await 1;

View File

@ -1,98 +1,98 @@
import "@babel/polyfill/lib/core-js/modules/es6.typed.array-buffer";
import "@babel/polyfill/lib/core-js/modules/es6.typed.data-view";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-clamped-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float64-array";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.set";
import "@babel/polyfill/lib/core-js/modules/es6.weak-map";
import "@babel/polyfill/lib/core-js/modules/es6.weak-set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.apply";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.construct";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.define-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.delete-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.has";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.own-keys";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/es6.object.freeze";
import "@babel/polyfill/lib/core-js/modules/es6.object.seal";
import "@babel/polyfill/lib/core-js/modules/es6.object.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-frozen";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-sealed";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.object.keys";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-names";
import "@babel/polyfill/lib/core-js/modules/es6.object.assign";
import "@babel/polyfill/lib/core-js/modules/es6.object.is";
import "@babel/polyfill/lib/core-js/modules/es6.object.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.function.name";
import "@babel/polyfill/lib/core-js/modules/es6.string.raw";
import "@babel/polyfill/lib/core-js/modules/es6.string.from-code-point";
import "@babel/polyfill/lib/core-js/modules/es6.string.code-point-at";
import "@babel/polyfill/lib/core-js/modules/es6.string.repeat";
import "@babel/polyfill/lib/core-js/modules/es6.string.starts-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.ends-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.includes";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.flags";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.match";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.replace";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.split";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.search";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "@babel/polyfill/lib/core-js/modules/es6.array.of";
import "@babel/polyfill/lib/core-js/modules/es6.array.copy-within";
import "@babel/polyfill/lib/core-js/modules/es6.array.find";
import "@babel/polyfill/lib/core-js/modules/es6.array.find-index";
import "@babel/polyfill/lib/core-js/modules/es6.array.fill";
import "@babel/polyfill/lib/core-js/modules/es6.array.iterator";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-finite";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-nan";
import "@babel/polyfill/lib/core-js/modules/es6.number.epsilon";
import "@babel/polyfill/lib/core-js/modules/es6.number.min-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.max-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-float";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-int";
import "@babel/polyfill/lib/core-js/modules/es6.math.acosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.asinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.atanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.cbrt";
import "@babel/polyfill/lib/core-js/modules/es6.math.clz32";
import "@babel/polyfill/lib/core-js/modules/es6.math.cosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.expm1";
import "@babel/polyfill/lib/core-js/modules/es6.math.fround";
import "@babel/polyfill/lib/core-js/modules/es6.math.hypot";
import "@babel/polyfill/lib/core-js/modules/es6.math.imul";
import "@babel/polyfill/lib/core-js/modules/es6.math.log1p";
import "@babel/polyfill/lib/core-js/modules/es6.math.log10";
import "@babel/polyfill/lib/core-js/modules/es6.math.log2";
import "@babel/polyfill/lib/core-js/modules/es6.math.sign";
import "@babel/polyfill/lib/core-js/modules/es6.math.sinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.tanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.trunc";
import "@babel/polyfill/lib/core-js/modules/es7.array.includes";
import "@babel/polyfill/lib/core-js/modules/es7.object.values";
import "@babel/polyfill/lib/core-js/modules/es7.object.entries";
import "@babel/polyfill/lib/core-js/modules/es7.object.get-own-property-descriptors";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "core-js/modules/es6.typed.array-buffer";
import "core-js/modules/es6.typed.data-view";
import "core-js/modules/es6.typed.int8-array";
import "core-js/modules/es6.typed.uint8-array";
import "core-js/modules/es6.typed.uint8-clamped-array";
import "core-js/modules/es6.typed.int16-array";
import "core-js/modules/es6.typed.uint16-array";
import "core-js/modules/es6.typed.int32-array";
import "core-js/modules/es6.typed.uint32-array";
import "core-js/modules/es6.typed.float32-array";
import "core-js/modules/es6.typed.float64-array";
import "core-js/modules/es6.map";
import "core-js/modules/es6.set";
import "core-js/modules/es6.weak-map";
import "core-js/modules/es6.weak-set";
import "core-js/modules/es6.reflect.apply";
import "core-js/modules/es6.reflect.construct";
import "core-js/modules/es6.reflect.define-property";
import "core-js/modules/es6.reflect.delete-property";
import "core-js/modules/es6.reflect.get";
import "core-js/modules/es6.reflect.get-own-property-descriptor";
import "core-js/modules/es6.reflect.get-prototype-of";
import "core-js/modules/es6.reflect.has";
import "core-js/modules/es6.reflect.is-extensible";
import "core-js/modules/es6.reflect.own-keys";
import "core-js/modules/es6.reflect.prevent-extensions";
import "core-js/modules/es6.reflect.set";
import "core-js/modules/es6.reflect.set-prototype-of";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.object.freeze";
import "core-js/modules/es6.object.seal";
import "core-js/modules/es6.object.prevent-extensions";
import "core-js/modules/es6.object.is-frozen";
import "core-js/modules/es6.object.is-sealed";
import "core-js/modules/es6.object.is-extensible";
import "core-js/modules/es6.object.get-own-property-descriptor";
import "core-js/modules/es6.object.get-prototype-of";
import "core-js/modules/es6.object.keys";
import "core-js/modules/es6.object.get-own-property-names";
import "core-js/modules/es6.object.assign";
import "core-js/modules/es6.object.is";
import "core-js/modules/es6.object.set-prototype-of";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.string.raw";
import "core-js/modules/es6.string.from-code-point";
import "core-js/modules/es6.string.code-point-at";
import "core-js/modules/es6.string.repeat";
import "core-js/modules/es6.string.starts-with";
import "core-js/modules/es6.string.ends-with";
import "core-js/modules/es6.string.includes";
import "core-js/modules/es6.regexp.flags";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.regexp.replace";
import "core-js/modules/es6.regexp.split";
import "core-js/modules/es6.regexp.search";
import "core-js/modules/es6.array.from";
import "core-js/modules/es6.array.of";
import "core-js/modules/es6.array.copy-within";
import "core-js/modules/es6.array.find";
import "core-js/modules/es6.array.find-index";
import "core-js/modules/es6.array.fill";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.number.is-finite";
import "core-js/modules/es6.number.is-integer";
import "core-js/modules/es6.number.is-safe-integer";
import "core-js/modules/es6.number.is-nan";
import "core-js/modules/es6.number.epsilon";
import "core-js/modules/es6.number.min-safe-integer";
import "core-js/modules/es6.number.max-safe-integer";
import "core-js/modules/es6.number.parse-float";
import "core-js/modules/es6.number.parse-int";
import "core-js/modules/es6.math.acosh";
import "core-js/modules/es6.math.asinh";
import "core-js/modules/es6.math.atanh";
import "core-js/modules/es6.math.cbrt";
import "core-js/modules/es6.math.clz32";
import "core-js/modules/es6.math.cosh";
import "core-js/modules/es6.math.expm1";
import "core-js/modules/es6.math.fround";
import "core-js/modules/es6.math.hypot";
import "core-js/modules/es6.math.imul";
import "core-js/modules/es6.math.log1p";
import "core-js/modules/es6.math.log10";
import "core-js/modules/es6.math.log2";
import "core-js/modules/es6.math.sign";
import "core-js/modules/es6.math.sinh";
import "core-js/modules/es6.math.tanh";
import "core-js/modules/es6.math.trunc";
import "core-js/modules/es7.array.includes";
import "core-js/modules/es7.object.values";
import "core-js/modules/es7.object.entries";
import "core-js/modules/es7.object.get-own-property-descriptors";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";

View File

@ -1,3 +1,3 @@
async function a() {
await 1;
}
}

View File

@ -1,97 +1,97 @@
import "@babel/polyfill/lib/core-js/modules/es6.typed.array-buffer";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-clamped-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float64-array";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.set";
import "@babel/polyfill/lib/core-js/modules/es6.weak-map";
import "@babel/polyfill/lib/core-js/modules/es6.weak-set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.apply";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.construct";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.define-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.delete-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.has";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.own-keys";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/es6.object.freeze";
import "@babel/polyfill/lib/core-js/modules/es6.object.seal";
import "@babel/polyfill/lib/core-js/modules/es6.object.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-frozen";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-sealed";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.object.keys";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-names";
import "@babel/polyfill/lib/core-js/modules/es6.object.assign";
import "@babel/polyfill/lib/core-js/modules/es6.object.is";
import "@babel/polyfill/lib/core-js/modules/es6.function.name";
import "@babel/polyfill/lib/core-js/modules/es6.string.raw";
import "@babel/polyfill/lib/core-js/modules/es6.string.from-code-point";
import "@babel/polyfill/lib/core-js/modules/es6.string.code-point-at";
import "@babel/polyfill/lib/core-js/modules/es6.string.repeat";
import "@babel/polyfill/lib/core-js/modules/es6.string.starts-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.ends-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.includes";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.flags";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.match";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.replace";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.split";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.search";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "@babel/polyfill/lib/core-js/modules/es6.array.of";
import "@babel/polyfill/lib/core-js/modules/es6.array.copy-within";
import "@babel/polyfill/lib/core-js/modules/es6.array.find";
import "@babel/polyfill/lib/core-js/modules/es6.array.find-index";
import "@babel/polyfill/lib/core-js/modules/es6.array.fill";
import "@babel/polyfill/lib/core-js/modules/es6.array.iterator";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-finite";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-nan";
import "@babel/polyfill/lib/core-js/modules/es6.number.epsilon";
import "@babel/polyfill/lib/core-js/modules/es6.number.min-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.max-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-float";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-int";
import "@babel/polyfill/lib/core-js/modules/es6.math.acosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.asinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.atanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.cbrt";
import "@babel/polyfill/lib/core-js/modules/es6.math.clz32";
import "@babel/polyfill/lib/core-js/modules/es6.math.cosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.expm1";
import "@babel/polyfill/lib/core-js/modules/es6.math.fround";
import "@babel/polyfill/lib/core-js/modules/es6.math.hypot";
import "@babel/polyfill/lib/core-js/modules/es6.math.imul";
import "@babel/polyfill/lib/core-js/modules/es6.math.log1p";
import "@babel/polyfill/lib/core-js/modules/es6.math.log10";
import "@babel/polyfill/lib/core-js/modules/es6.math.log2";
import "@babel/polyfill/lib/core-js/modules/es6.math.sign";
import "@babel/polyfill/lib/core-js/modules/es6.math.sinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.tanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.trunc";
import "@babel/polyfill/lib/core-js/modules/es7.array.includes";
import "@babel/polyfill/lib/core-js/modules/es7.object.values";
import "@babel/polyfill/lib/core-js/modules/es7.object.entries";
import "@babel/polyfill/lib/core-js/modules/es7.object.get-own-property-descriptors";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es6.typed.array-buffer";
import "core-js/modules/es6.typed.int8-array";
import "core-js/modules/es6.typed.uint8-array";
import "core-js/modules/es6.typed.uint8-clamped-array";
import "core-js/modules/es6.typed.int16-array";
import "core-js/modules/es6.typed.uint16-array";
import "core-js/modules/es6.typed.int32-array";
import "core-js/modules/es6.typed.uint32-array";
import "core-js/modules/es6.typed.float32-array";
import "core-js/modules/es6.typed.float64-array";
import "core-js/modules/es6.map";
import "core-js/modules/es6.set";
import "core-js/modules/es6.weak-map";
import "core-js/modules/es6.weak-set";
import "core-js/modules/es6.reflect.apply";
import "core-js/modules/es6.reflect.construct";
import "core-js/modules/es6.reflect.define-property";
import "core-js/modules/es6.reflect.delete-property";
import "core-js/modules/es6.reflect.get";
import "core-js/modules/es6.reflect.get-own-property-descriptor";
import "core-js/modules/es6.reflect.get-prototype-of";
import "core-js/modules/es6.reflect.has";
import "core-js/modules/es6.reflect.is-extensible";
import "core-js/modules/es6.reflect.own-keys";
import "core-js/modules/es6.reflect.prevent-extensions";
import "core-js/modules/es6.reflect.set";
import "core-js/modules/es6.reflect.set-prototype-of";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.object.freeze";
import "core-js/modules/es6.object.seal";
import "core-js/modules/es6.object.prevent-extensions";
import "core-js/modules/es6.object.is-frozen";
import "core-js/modules/es6.object.is-sealed";
import "core-js/modules/es6.object.is-extensible";
import "core-js/modules/es6.object.get-own-property-descriptor";
import "core-js/modules/es6.object.get-prototype-of";
import "core-js/modules/es6.object.keys";
import "core-js/modules/es6.object.get-own-property-names";
import "core-js/modules/es6.object.assign";
import "core-js/modules/es6.object.is";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.string.raw";
import "core-js/modules/es6.string.from-code-point";
import "core-js/modules/es6.string.code-point-at";
import "core-js/modules/es6.string.repeat";
import "core-js/modules/es6.string.starts-with";
import "core-js/modules/es6.string.ends-with";
import "core-js/modules/es6.string.includes";
import "core-js/modules/es6.regexp.flags";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.regexp.replace";
import "core-js/modules/es6.regexp.split";
import "core-js/modules/es6.regexp.search";
import "core-js/modules/es6.array.from";
import "core-js/modules/es6.array.of";
import "core-js/modules/es6.array.copy-within";
import "core-js/modules/es6.array.find";
import "core-js/modules/es6.array.find-index";
import "core-js/modules/es6.array.fill";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.number.is-finite";
import "core-js/modules/es6.number.is-integer";
import "core-js/modules/es6.number.is-safe-integer";
import "core-js/modules/es6.number.is-nan";
import "core-js/modules/es6.number.epsilon";
import "core-js/modules/es6.number.min-safe-integer";
import "core-js/modules/es6.number.max-safe-integer";
import "core-js/modules/es6.number.parse-float";
import "core-js/modules/es6.number.parse-int";
import "core-js/modules/es6.math.acosh";
import "core-js/modules/es6.math.asinh";
import "core-js/modules/es6.math.atanh";
import "core-js/modules/es6.math.cbrt";
import "core-js/modules/es6.math.clz32";
import "core-js/modules/es6.math.cosh";
import "core-js/modules/es6.math.expm1";
import "core-js/modules/es6.math.fround";
import "core-js/modules/es6.math.hypot";
import "core-js/modules/es6.math.imul";
import "core-js/modules/es6.math.log1p";
import "core-js/modules/es6.math.log10";
import "core-js/modules/es6.math.log2";
import "core-js/modules/es6.math.sign";
import "core-js/modules/es6.math.sinh";
import "core-js/modules/es6.math.tanh";
import "core-js/modules/es6.math.trunc";
import "core-js/modules/es7.array.includes";
import "core-js/modules/es7.object.values";
import "core-js/modules/es7.object.entries";
import "core-js/modules/es7.object.get-own-property-descriptors";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "regenerator-runtime/runtime";

View File

@ -1,7 +1,7 @@
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.set";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.map";
import "core-js/modules/es6.set";

View File

@ -1,2 +1,2 @@
import "not-core-js";
import "not-babel-polyfill";
import "not-babel-polyfill";

View File

@ -1,12 +1,12 @@
"use strict";
require("@babel/polyfill/lib/core-js/modules/es6.symbol");
require("core-js/modules/es6.symbol");
require("@babel/polyfill/lib/core-js/modules/es6.promise");
require("core-js/modules/es6.promise");
require("@babel/polyfill/lib/regenerator-runtime/runtime");
require("regenerator-runtime/runtime");
require("@babel/polyfill/lib/core-js/modules/es6.object.assign");
require("core-js/modules/es6.object.assign");
var agf = function () {
var _ref = _wrapAsyncGenerator(

View File

@ -1,7 +1,7 @@
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "regenerator-runtime/runtime";
var a = 1;

View File

@ -1,99 +1,99 @@
import "@babel/polyfill/lib/core-js/modules/es6.typed.array-buffer";
import "@babel/polyfill/lib/core-js/modules/es6.typed.data-view";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-clamped-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float64-array";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.set";
import "@babel/polyfill/lib/core-js/modules/es6.weak-map";
import "@babel/polyfill/lib/core-js/modules/es6.weak-set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.apply";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.construct";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.define-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.delete-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.has";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.own-keys";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/es6.object.freeze";
import "@babel/polyfill/lib/core-js/modules/es6.object.seal";
import "@babel/polyfill/lib/core-js/modules/es6.object.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-frozen";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-sealed";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.object.keys";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-names";
import "@babel/polyfill/lib/core-js/modules/es6.object.assign";
import "@babel/polyfill/lib/core-js/modules/es6.object.is";
import "@babel/polyfill/lib/core-js/modules/es6.object.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.function.name";
import "@babel/polyfill/lib/core-js/modules/es6.string.raw";
import "@babel/polyfill/lib/core-js/modules/es6.string.from-code-point";
import "@babel/polyfill/lib/core-js/modules/es6.string.code-point-at";
import "@babel/polyfill/lib/core-js/modules/es6.string.repeat";
import "@babel/polyfill/lib/core-js/modules/es6.string.starts-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.ends-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.includes";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.flags";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.match";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.replace";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.split";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.search";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "@babel/polyfill/lib/core-js/modules/es6.array.of";
import "@babel/polyfill/lib/core-js/modules/es6.array.copy-within";
import "@babel/polyfill/lib/core-js/modules/es6.array.find";
import "@babel/polyfill/lib/core-js/modules/es6.array.find-index";
import "@babel/polyfill/lib/core-js/modules/es6.array.fill";
import "@babel/polyfill/lib/core-js/modules/es6.array.iterator";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-finite";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-nan";
import "@babel/polyfill/lib/core-js/modules/es6.number.epsilon";
import "@babel/polyfill/lib/core-js/modules/es6.number.min-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.max-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-float";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-int";
import "@babel/polyfill/lib/core-js/modules/es6.math.acosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.asinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.atanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.cbrt";
import "@babel/polyfill/lib/core-js/modules/es6.math.clz32";
import "@babel/polyfill/lib/core-js/modules/es6.math.cosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.expm1";
import "@babel/polyfill/lib/core-js/modules/es6.math.fround";
import "@babel/polyfill/lib/core-js/modules/es6.math.hypot";
import "@babel/polyfill/lib/core-js/modules/es6.math.imul";
import "@babel/polyfill/lib/core-js/modules/es6.math.log1p";
import "@babel/polyfill/lib/core-js/modules/es6.math.log10";
import "@babel/polyfill/lib/core-js/modules/es6.math.log2";
import "@babel/polyfill/lib/core-js/modules/es6.math.sign";
import "@babel/polyfill/lib/core-js/modules/es6.math.sinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.tanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.trunc";
import "@babel/polyfill/lib/core-js/modules/es7.array.includes";
import "@babel/polyfill/lib/core-js/modules/es7.object.values";
import "@babel/polyfill/lib/core-js/modules/es7.object.entries";
import "@babel/polyfill/lib/core-js/modules/es7.object.get-own-property-descriptors";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es6.typed.array-buffer";
import "core-js/modules/es6.typed.data-view";
import "core-js/modules/es6.typed.int8-array";
import "core-js/modules/es6.typed.uint8-array";
import "core-js/modules/es6.typed.uint8-clamped-array";
import "core-js/modules/es6.typed.int16-array";
import "core-js/modules/es6.typed.uint16-array";
import "core-js/modules/es6.typed.int32-array";
import "core-js/modules/es6.typed.uint32-array";
import "core-js/modules/es6.typed.float32-array";
import "core-js/modules/es6.typed.float64-array";
import "core-js/modules/es6.map";
import "core-js/modules/es6.set";
import "core-js/modules/es6.weak-map";
import "core-js/modules/es6.weak-set";
import "core-js/modules/es6.reflect.apply";
import "core-js/modules/es6.reflect.construct";
import "core-js/modules/es6.reflect.define-property";
import "core-js/modules/es6.reflect.delete-property";
import "core-js/modules/es6.reflect.get";
import "core-js/modules/es6.reflect.get-own-property-descriptor";
import "core-js/modules/es6.reflect.get-prototype-of";
import "core-js/modules/es6.reflect.has";
import "core-js/modules/es6.reflect.is-extensible";
import "core-js/modules/es6.reflect.own-keys";
import "core-js/modules/es6.reflect.prevent-extensions";
import "core-js/modules/es6.reflect.set";
import "core-js/modules/es6.reflect.set-prototype-of";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.object.freeze";
import "core-js/modules/es6.object.seal";
import "core-js/modules/es6.object.prevent-extensions";
import "core-js/modules/es6.object.is-frozen";
import "core-js/modules/es6.object.is-sealed";
import "core-js/modules/es6.object.is-extensible";
import "core-js/modules/es6.object.get-own-property-descriptor";
import "core-js/modules/es6.object.get-prototype-of";
import "core-js/modules/es6.object.keys";
import "core-js/modules/es6.object.get-own-property-names";
import "core-js/modules/es6.object.assign";
import "core-js/modules/es6.object.is";
import "core-js/modules/es6.object.set-prototype-of";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.string.raw";
import "core-js/modules/es6.string.from-code-point";
import "core-js/modules/es6.string.code-point-at";
import "core-js/modules/es6.string.repeat";
import "core-js/modules/es6.string.starts-with";
import "core-js/modules/es6.string.ends-with";
import "core-js/modules/es6.string.includes";
import "core-js/modules/es6.regexp.flags";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.regexp.replace";
import "core-js/modules/es6.regexp.split";
import "core-js/modules/es6.regexp.search";
import "core-js/modules/es6.array.from";
import "core-js/modules/es6.array.of";
import "core-js/modules/es6.array.copy-within";
import "core-js/modules/es6.array.find";
import "core-js/modules/es6.array.find-index";
import "core-js/modules/es6.array.fill";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.number.is-finite";
import "core-js/modules/es6.number.is-integer";
import "core-js/modules/es6.number.is-safe-integer";
import "core-js/modules/es6.number.is-nan";
import "core-js/modules/es6.number.epsilon";
import "core-js/modules/es6.number.min-safe-integer";
import "core-js/modules/es6.number.max-safe-integer";
import "core-js/modules/es6.number.parse-float";
import "core-js/modules/es6.number.parse-int";
import "core-js/modules/es6.math.acosh";
import "core-js/modules/es6.math.asinh";
import "core-js/modules/es6.math.atanh";
import "core-js/modules/es6.math.cbrt";
import "core-js/modules/es6.math.clz32";
import "core-js/modules/es6.math.cosh";
import "core-js/modules/es6.math.expm1";
import "core-js/modules/es6.math.fround";
import "core-js/modules/es6.math.hypot";
import "core-js/modules/es6.math.imul";
import "core-js/modules/es6.math.log1p";
import "core-js/modules/es6.math.log10";
import "core-js/modules/es6.math.log2";
import "core-js/modules/es6.math.sign";
import "core-js/modules/es6.math.sinh";
import "core-js/modules/es6.math.tanh";
import "core-js/modules/es6.math.trunc";
import "core-js/modules/es7.array.includes";
import "core-js/modules/es7.object.values";
import "core-js/modules/es7.object.entries";
import "core-js/modules/es7.object.get-own-property-descriptors";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "regenerator-runtime/runtime";

View File

@ -1,46 +1,46 @@
import "@babel/polyfill/lib/core-js/modules/es6.typed.array-buffer";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-clamped-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float64-array";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.set";
import "@babel/polyfill/lib/core-js/modules/es6.weak-map";
import "@babel/polyfill/lib/core-js/modules/es6.weak-set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.apply";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.construct";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.define-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.delete-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.has";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.own-keys";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/es6.function.name";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.flags";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.match";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.replace";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.split";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.search";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "@babel/polyfill/lib/core-js/modules/es7.object.values";
import "@babel/polyfill/lib/core-js/modules/es7.object.entries";
import "@babel/polyfill/lib/core-js/modules/es7.object.get-own-property-descriptors";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es6.typed.array-buffer";
import "core-js/modules/es6.typed.int8-array";
import "core-js/modules/es6.typed.uint8-array";
import "core-js/modules/es6.typed.uint8-clamped-array";
import "core-js/modules/es6.typed.int16-array";
import "core-js/modules/es6.typed.uint16-array";
import "core-js/modules/es6.typed.int32-array";
import "core-js/modules/es6.typed.uint32-array";
import "core-js/modules/es6.typed.float32-array";
import "core-js/modules/es6.typed.float64-array";
import "core-js/modules/es6.map";
import "core-js/modules/es6.set";
import "core-js/modules/es6.weak-map";
import "core-js/modules/es6.weak-set";
import "core-js/modules/es6.reflect.apply";
import "core-js/modules/es6.reflect.construct";
import "core-js/modules/es6.reflect.define-property";
import "core-js/modules/es6.reflect.delete-property";
import "core-js/modules/es6.reflect.get";
import "core-js/modules/es6.reflect.get-own-property-descriptor";
import "core-js/modules/es6.reflect.get-prototype-of";
import "core-js/modules/es6.reflect.has";
import "core-js/modules/es6.reflect.is-extensible";
import "core-js/modules/es6.reflect.own-keys";
import "core-js/modules/es6.reflect.prevent-extensions";
import "core-js/modules/es6.reflect.set";
import "core-js/modules/es6.reflect.set-prototype-of";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.regexp.flags";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.regexp.replace";
import "core-js/modules/es6.regexp.split";
import "core-js/modules/es6.regexp.search";
import "core-js/modules/es6.array.from";
import "core-js/modules/es7.object.values";
import "core-js/modules/es7.object.entries";
import "core-js/modules/es7.object.get-own-property-descriptors";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "regenerator-runtime/runtime";
Math.pow(1, 2);

View File

@ -1,32 +1,32 @@
import "@babel/polyfill/lib/core-js/modules/es6.typed.array-buffer";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-clamped-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float64-array";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.set";
import "@babel/polyfill/lib/core-js/modules/es6.weak-map";
import "@babel/polyfill/lib/core-js/modules/es6.weak-set";
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/es6.function.name";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.match";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.replace";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.split";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.search";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "@babel/polyfill/lib/core-js/modules/es7.object.values";
import "@babel/polyfill/lib/core-js/modules/es7.object.entries";
import "@babel/polyfill/lib/core-js/modules/es7.object.get-own-property-descriptors";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es6.typed.array-buffer";
import "core-js/modules/es6.typed.int8-array";
import "core-js/modules/es6.typed.uint8-array";
import "core-js/modules/es6.typed.uint8-clamped-array";
import "core-js/modules/es6.typed.int16-array";
import "core-js/modules/es6.typed.uint16-array";
import "core-js/modules/es6.typed.int32-array";
import "core-js/modules/es6.typed.uint32-array";
import "core-js/modules/es6.typed.float32-array";
import "core-js/modules/es6.typed.float64-array";
import "core-js/modules/es6.map";
import "core-js/modules/es6.set";
import "core-js/modules/es6.weak-map";
import "core-js/modules/es6.weak-set";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.regexp.replace";
import "core-js/modules/es6.regexp.split";
import "core-js/modules/es6.regexp.search";
import "core-js/modules/es6.array.from";
import "core-js/modules/es7.object.values";
import "core-js/modules/es7.object.entries";
import "core-js/modules/es7.object.get-own-property-descriptors";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "regenerator-runtime/runtime";
Math.pow(1, 2);

View File

@ -1,4 +1,4 @@
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
1 ** 2;

View File

@ -1,99 +1,99 @@
import "@babel/polyfill/lib/core-js/modules/es6.typed.array-buffer";
import "@babel/polyfill/lib/core-js/modules/es6.typed.data-view";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint8-clamped-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint16-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.int32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.uint32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float32-array";
import "@babel/polyfill/lib/core-js/modules/es6.typed.float64-array";
import "@babel/polyfill/lib/core-js/modules/es6.map";
import "@babel/polyfill/lib/core-js/modules/es6.set";
import "@babel/polyfill/lib/core-js/modules/es6.weak-map";
import "@babel/polyfill/lib/core-js/modules/es6.weak-set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.apply";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.construct";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.define-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.delete-property";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.has";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.own-keys";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set";
import "@babel/polyfill/lib/core-js/modules/es6.reflect.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.promise";
import "@babel/polyfill/lib/core-js/modules/es6.symbol";
import "@babel/polyfill/lib/core-js/modules/es6.object.freeze";
import "@babel/polyfill/lib/core-js/modules/es6.object.seal";
import "@babel/polyfill/lib/core-js/modules/es6.object.prevent-extensions";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-frozen";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-sealed";
import "@babel/polyfill/lib/core-js/modules/es6.object.is-extensible";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-descriptor";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.object.keys";
import "@babel/polyfill/lib/core-js/modules/es6.object.get-own-property-names";
import "@babel/polyfill/lib/core-js/modules/es6.object.assign";
import "@babel/polyfill/lib/core-js/modules/es6.object.is";
import "@babel/polyfill/lib/core-js/modules/es6.object.set-prototype-of";
import "@babel/polyfill/lib/core-js/modules/es6.function.name";
import "@babel/polyfill/lib/core-js/modules/es6.string.raw";
import "@babel/polyfill/lib/core-js/modules/es6.string.from-code-point";
import "@babel/polyfill/lib/core-js/modules/es6.string.code-point-at";
import "@babel/polyfill/lib/core-js/modules/es6.string.repeat";
import "@babel/polyfill/lib/core-js/modules/es6.string.starts-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.ends-with";
import "@babel/polyfill/lib/core-js/modules/es6.string.includes";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.flags";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.match";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.replace";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.split";
import "@babel/polyfill/lib/core-js/modules/es6.regexp.search";
import "@babel/polyfill/lib/core-js/modules/es6.array.from";
import "@babel/polyfill/lib/core-js/modules/es6.array.of";
import "@babel/polyfill/lib/core-js/modules/es6.array.copy-within";
import "@babel/polyfill/lib/core-js/modules/es6.array.find";
import "@babel/polyfill/lib/core-js/modules/es6.array.find-index";
import "@babel/polyfill/lib/core-js/modules/es6.array.fill";
import "@babel/polyfill/lib/core-js/modules/es6.array.iterator";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-finite";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.is-nan";
import "@babel/polyfill/lib/core-js/modules/es6.number.epsilon";
import "@babel/polyfill/lib/core-js/modules/es6.number.min-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.max-safe-integer";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-float";
import "@babel/polyfill/lib/core-js/modules/es6.number.parse-int";
import "@babel/polyfill/lib/core-js/modules/es6.math.acosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.asinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.atanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.cbrt";
import "@babel/polyfill/lib/core-js/modules/es6.math.clz32";
import "@babel/polyfill/lib/core-js/modules/es6.math.cosh";
import "@babel/polyfill/lib/core-js/modules/es6.math.expm1";
import "@babel/polyfill/lib/core-js/modules/es6.math.fround";
import "@babel/polyfill/lib/core-js/modules/es6.math.hypot";
import "@babel/polyfill/lib/core-js/modules/es6.math.imul";
import "@babel/polyfill/lib/core-js/modules/es6.math.log1p";
import "@babel/polyfill/lib/core-js/modules/es6.math.log10";
import "@babel/polyfill/lib/core-js/modules/es6.math.log2";
import "@babel/polyfill/lib/core-js/modules/es6.math.sign";
import "@babel/polyfill/lib/core-js/modules/es6.math.sinh";
import "@babel/polyfill/lib/core-js/modules/es6.math.tanh";
import "@babel/polyfill/lib/core-js/modules/es6.math.trunc";
import "@babel/polyfill/lib/core-js/modules/es7.array.includes";
import "@babel/polyfill/lib/core-js/modules/es7.object.values";
import "@babel/polyfill/lib/core-js/modules/es7.object.entries";
import "@babel/polyfill/lib/core-js/modules/es7.object.get-own-property-descriptors";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es6.typed.array-buffer";
import "core-js/modules/es6.typed.data-view";
import "core-js/modules/es6.typed.int8-array";
import "core-js/modules/es6.typed.uint8-array";
import "core-js/modules/es6.typed.uint8-clamped-array";
import "core-js/modules/es6.typed.int16-array";
import "core-js/modules/es6.typed.uint16-array";
import "core-js/modules/es6.typed.int32-array";
import "core-js/modules/es6.typed.uint32-array";
import "core-js/modules/es6.typed.float32-array";
import "core-js/modules/es6.typed.float64-array";
import "core-js/modules/es6.map";
import "core-js/modules/es6.set";
import "core-js/modules/es6.weak-map";
import "core-js/modules/es6.weak-set";
import "core-js/modules/es6.reflect.apply";
import "core-js/modules/es6.reflect.construct";
import "core-js/modules/es6.reflect.define-property";
import "core-js/modules/es6.reflect.delete-property";
import "core-js/modules/es6.reflect.get";
import "core-js/modules/es6.reflect.get-own-property-descriptor";
import "core-js/modules/es6.reflect.get-prototype-of";
import "core-js/modules/es6.reflect.has";
import "core-js/modules/es6.reflect.is-extensible";
import "core-js/modules/es6.reflect.own-keys";
import "core-js/modules/es6.reflect.prevent-extensions";
import "core-js/modules/es6.reflect.set";
import "core-js/modules/es6.reflect.set-prototype-of";
import "core-js/modules/es6.promise";
import "core-js/modules/es6.symbol";
import "core-js/modules/es6.object.freeze";
import "core-js/modules/es6.object.seal";
import "core-js/modules/es6.object.prevent-extensions";
import "core-js/modules/es6.object.is-frozen";
import "core-js/modules/es6.object.is-sealed";
import "core-js/modules/es6.object.is-extensible";
import "core-js/modules/es6.object.get-own-property-descriptor";
import "core-js/modules/es6.object.get-prototype-of";
import "core-js/modules/es6.object.keys";
import "core-js/modules/es6.object.get-own-property-names";
import "core-js/modules/es6.object.assign";
import "core-js/modules/es6.object.is";
import "core-js/modules/es6.object.set-prototype-of";
import "core-js/modules/es6.function.name";
import "core-js/modules/es6.string.raw";
import "core-js/modules/es6.string.from-code-point";
import "core-js/modules/es6.string.code-point-at";
import "core-js/modules/es6.string.repeat";
import "core-js/modules/es6.string.starts-with";
import "core-js/modules/es6.string.ends-with";
import "core-js/modules/es6.string.includes";
import "core-js/modules/es6.regexp.flags";
import "core-js/modules/es6.regexp.match";
import "core-js/modules/es6.regexp.replace";
import "core-js/modules/es6.regexp.split";
import "core-js/modules/es6.regexp.search";
import "core-js/modules/es6.array.from";
import "core-js/modules/es6.array.of";
import "core-js/modules/es6.array.copy-within";
import "core-js/modules/es6.array.find";
import "core-js/modules/es6.array.find-index";
import "core-js/modules/es6.array.fill";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.number.is-finite";
import "core-js/modules/es6.number.is-integer";
import "core-js/modules/es6.number.is-safe-integer";
import "core-js/modules/es6.number.is-nan";
import "core-js/modules/es6.number.epsilon";
import "core-js/modules/es6.number.min-safe-integer";
import "core-js/modules/es6.number.max-safe-integer";
import "core-js/modules/es6.number.parse-float";
import "core-js/modules/es6.number.parse-int";
import "core-js/modules/es6.math.acosh";
import "core-js/modules/es6.math.asinh";
import "core-js/modules/es6.math.atanh";
import "core-js/modules/es6.math.cbrt";
import "core-js/modules/es6.math.clz32";
import "core-js/modules/es6.math.cosh";
import "core-js/modules/es6.math.expm1";
import "core-js/modules/es6.math.fround";
import "core-js/modules/es6.math.hypot";
import "core-js/modules/es6.math.imul";
import "core-js/modules/es6.math.log1p";
import "core-js/modules/es6.math.log10";
import "core-js/modules/es6.math.log2";
import "core-js/modules/es6.math.sign";
import "core-js/modules/es6.math.sinh";
import "core-js/modules/es6.math.tanh";
import "core-js/modules/es6.math.trunc";
import "core-js/modules/es7.array.includes";
import "core-js/modules/es7.object.values";
import "core-js/modules/es7.object.entries";
import "core-js/modules/es7.object.get-own-property-descriptors";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "regenerator-runtime/runtime";

View File

@ -1,6 +1,6 @@
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
1 ** 2;

View File

@ -1,6 +1,6 @@
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/core-js/modules/web.timers";
import "@babel/polyfill/lib/core-js/modules/web.immediate";
import "@babel/polyfill/lib/core-js/modules/web.dom.iterable";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "core-js/modules/web.timers";
import "core-js/modules/web.immediate";
import "core-js/modules/web.dom.iterable";
import "regenerator-runtime/runtime";

View File

@ -1,3 +1,3 @@
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-start";
import "@babel/polyfill/lib/core-js/modules/es7.string.pad-end";
import "@babel/polyfill/lib/regenerator-runtime/runtime";
import "core-js/modules/es7.string.pad-start";
import "core-js/modules/es7.string.pad-end";
import "regenerator-runtime/runtime";

View File

@ -1,11 +1,11 @@
require("@babel/polyfill/lib/core-js/modules/es7.string.pad-start");
require("core-js/modules/es7.string.pad-start");
require("@babel/polyfill/lib/core-js/modules/es7.string.pad-end");
require("core-js/modules/es7.string.pad-end");
require("@babel/polyfill/lib/core-js/modules/web.timers");
require("core-js/modules/web.timers");
require("@babel/polyfill/lib/core-js/modules/web.immediate");
require("core-js/modules/web.immediate");
require("@babel/polyfill/lib/core-js/modules/web.dom.iterable");
require("core-js/modules/web.dom.iterable");
1 ** 2;

View File

@ -1,6 +1,6 @@
{
"lerna": "2.0.0-rc.4",
"version": "7.0.0-beta.5",
"version": "7.0.0-beta.31",
"changelog": {
"repo": "babel/babel",
"labels": {

View File

@ -1,6 +0,0 @@
{
"rules": {
"prettier/prettier": ["error", { "trailingComma": "all" }],
"no-undefined-identifier": 2
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@babel/cli",
"version": "7.0.0-beta.5",
"version": "7.0.0-beta.31",
"description": "Babel command line.",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
@ -29,11 +29,11 @@
"chokidar": "^1.6.1"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.5"
"@babel/core": "7.0.0-beta.31"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.5",
"@babel/helper-fixtures": "7.0.0-beta.5"
"@babel/core": "7.0.0-beta.31",
"@babel/helper-fixtures": "7.0.0-beta.31"
},
"bin": {
"babel": "./bin/babel.js",

View File

@ -1,6 +1,6 @@
{
"name": "@babel/code-frame",
"version": "7.0.0-beta.5",
"version": "7.0.0-beta.31",
"description": "Generate errors that contain a code frame that point to source locations.",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",

View File

@ -1,6 +1,6 @@
{
"name": "@babel/core",
"version": "7.0.0-beta.5",
"version": "7.0.0-beta.31",
"description": "Babel compiler core.",
"main": "./lib/index.js",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
@ -28,13 +28,13 @@
"./lib/transform-file-sync.js": "./lib/transform-file-sync-browser.js"
},
"dependencies": {
"@babel/code-frame": "7.0.0-beta.5",
"@babel/generator": "7.0.0-beta.5",
"@babel/helpers": "7.0.0-beta.5",
"@babel/template": "7.0.0-beta.5",
"@babel/traverse": "7.0.0-beta.5",
"@babel/types": "7.0.0-beta.5",
"babylon": "7.0.0-beta.30",
"@babel/code-frame": "7.0.0-beta.31",
"@babel/generator": "7.0.0-beta.31",
"@babel/helpers": "7.0.0-beta.31",
"@babel/template": "7.0.0-beta.31",
"@babel/traverse": "7.0.0-beta.31",
"@babel/types": "7.0.0-beta.31",
"babylon": "7.0.0-beta.31",
"convert-source-map": "^1.1.0",
"debug": "^3.0.1",
"json5": "^0.5.0",
@ -44,7 +44,7 @@
"source-map": "^0.5.0"
},
"devDependencies": {
"@babel/helper-transform-fixture-test-runner": "7.0.0-beta.5",
"@babel/register": "7.0.0-beta.5"
"@babel/helper-transform-fixture-test-runner": "7.0.0-beta.31",
"@babel/register": "7.0.0-beta.31"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@babel/generator",
"version": "7.0.0-beta.5",
"version": "7.0.0-beta.31",
"description": "Turns an AST into code.",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
@ -11,14 +11,14 @@
"lib"
],
"dependencies": {
"@babel/types": "7.0.0-beta.5",
"@babel/types": "7.0.0-beta.31",
"jsesc": "^2.5.1",
"lodash": "^4.2.0",
"source-map": "^0.5.0",
"trim-right": "^1.0.1"
},
"devDependencies": {
"@babel/helper-fixtures": "7.0.0-beta.5",
"babylon": "^7.0.0-beta.30"
"@babel/helper-fixtures": "7.0.0-beta.31",
"babylon": "7.0.0-beta.31"
}
}

View File

@ -0,0 +1,55 @@
/*
Copies tests from babylon's TypeScript test suite to @babel/generator.
*/
const {
copySync,
emptyDirSync,
existsSync,
readdirSync,
readFileSync,
} = require("fs-extra");
const { join } = require("path");
const testsFrom = join(__dirname, "../../babylon/test/fixtures/typescript");
const testsTo = join(__dirname, "../test/fixtures/typescript");
emptyDirSync(testsTo);
copySync(join(testsFrom, "options.json"), join(testsTo, "options.json"));
for (const groupName of readdirSync(testsFrom)) {
if (groupName === "options.json") continue;
const groupFromDir = join(testsFrom, groupName);
const testNames = readdirSync(groupFromDir);
const groupHasOptions = testNames.includes("options.json");
for (const testName of testNames) {
if (testName === "options.json") {
continue;
}
const testFromDir = join(groupFromDir, testName);
const testToDir = join(testsTo, `${groupName}-${testName}`);
let optionsJsonFrom;
const ownOptions = join(testFromDir, "options.json");
if (existsSync(ownOptions)) {
const options = JSON.parse(readFileSync(ownOptions));
// Don't include a test that doesn't parse or does not provide babel AST
if (options.throws || options.plugins.indexOf("estree") >= 0) {
continue;
}
optionsJsonFrom = ownOptions;
} else if (groupHasOptions) {
// Copy group options to each individual one, since we don't have groups here.
optionsJsonFrom = join(groupFromDir, "options.json");
}
emptyDirSync(testToDir);
if (optionsJsonFrom) {
copySync(optionsJsonFrom, join(testToDir, "options.json"));
}
copySync(join(testFromDir, "actual.js"), join(testToDir, "actual.js"));
}
}

View File

@ -92,3 +92,25 @@ export function JSXClosingElement(node: Object) {
}
export function JSXEmptyExpression() {}
export function JSXFragment(node: Object) {
this.print(node.openingFragment, node);
this.indent();
for (const child of (node.children: Array<Object>)) {
this.print(child, node);
}
this.dedent();
this.print(node.closingFragment, node);
}
export function JSXOpeningFragment() {
this.token("<");
this.token(">");
}
export function JSXClosingFragment() {
this.token("</");
this.token(">");
}

View File

@ -0,0 +1,6 @@
<></>;
<
>
text
</>;

View File

@ -0,0 +1,4 @@
<></>;
<>
text
</>;

View File

@ -0,0 +1 @@
{ "plugins": ["jsx" ] }

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
}

View File

@ -1,4 +1,4 @@
{
"sourceType": "module",
"plugins": ["typescript", "classProperties"]
"plugins": ["typescript"]
}

View File

@ -0,0 +1,3 @@
export type T = number;
export enum E {}
export interface I {}

View File

@ -0,0 +1,3 @@
export type T = number;
export enum E {}
export interface I {}

View File

@ -0,0 +1,3 @@
{
"plugins": ["exportExtensions", "typescript"]
}

View File

@ -0,0 +1 @@
function f< T >() {}

View File

@ -0,0 +1 @@
function f<T>() {}

View File

@ -1,69 +0,0 @@
/*
Copies tests from babylon's TypeScript test suite to @babel/generator.
This script assumes that the "babylon" repository is adjacent to "babel".
*/
const {
copySync,
emptyDirSync,
existsSync,
readdirSync,
readFileSync,
} = require("fs-extra");
const { join } = require("path");
if (!module.parent) {
const testsFrom = join(
__dirname,
"..",
"..",
"..",
"..",
"babylon",
"test",
"fixtures",
"typescript",
);
const testsTo = join(__dirname, "fixtures", "typescript");
emptyDirSync(testsTo);
copySync(join(testsFrom, "options.json"), join(testsTo, "options.json"));
for (const groupName of readdirSync(testsFrom)) {
if (groupName === "options.json") continue;
const groupFromDir = join(testsFrom, groupName);
const testNames = readdirSync(groupFromDir);
const groupHasOptions = testNames.includes("options.json");
for (const testName of testNames) {
if (testName === "options.json") {
continue;
}
const testFromDir = join(groupFromDir, testName);
const testToDir = join(testsTo, `${groupName}-${testName}`);
let optionsJsonFrom;
const ownOptions = join(testFromDir, "options.json");
if (existsSync(ownOptions)) {
const options = JSON.parse(readFileSync(ownOptions));
// Don't include a test that doesn't parse.
if (options.throws) {
continue;
}
optionsJsonFrom = ownOptions;
} else if (groupHasOptions) {
// Copy group options to each individual one, since we don't have groups here.
optionsJsonFrom = join(groupFromDir, "options.json");
}
emptyDirSync(testToDir);
if (optionsJsonFrom) {
copySync(optionsJsonFrom, join(testToDir, "options.json"));
}
copySync(join(testFromDir, "actual.js"), join(testToDir, "actual.js"));
}
}
}

Some files were not shown because too many files have changed in this diff Show More