Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f5b7554b8 | ||
|
|
ead23d7112 | ||
|
|
626f47982e | ||
|
|
55faa27b93 | ||
|
|
090c364a90 | ||
|
|
f38be13113 | ||
|
|
889cdb8da5 | ||
|
|
af694ebae1 | ||
|
|
a19b72e46d | ||
|
|
38cf318f61 | ||
|
|
be027fd36c | ||
|
|
5150f5f500 | ||
|
|
9f407e0735 | ||
|
|
3b0f9a9f1e | ||
|
|
9e7c7f5683 |
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
||||
MAKEFLAGS = -j1
|
||||
FLOW_COMMIT = bea8b83f50f597454941d2a7ecef6e93a881e576
|
||||
TEST262_COMMIT = f90a52b39609a620c0854e0bd0b3a906c930fd17
|
||||
TEST262_COMMIT = 06c2f019019cf7850923de4d56828e6dfd9212b8
|
||||
|
||||
# Fix color output until TravisCI fixes https://github.com/travis-ci/travis-ci/issues/7967
|
||||
export FORCE_COLOR = true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"lerna": "2.11.0",
|
||||
"version": "7.1.0",
|
||||
"version": "7.1.2",
|
||||
"changelog": {
|
||||
"repo": "babel/babel",
|
||||
"cacheDir": ".changelog",
|
||||
|
||||
34
package.json
34
package.json
@@ -6,25 +6,24 @@
|
||||
"build": "make build",
|
||||
"fix": "make fix",
|
||||
"lint": "make lint",
|
||||
"precommit": "lint-staged",
|
||||
"test": "make test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.0.0",
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
||||
"@babel/cli": "^7.1.0",
|
||||
"@babel/core": "^7.1.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.1.0",
|
||||
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
||||
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
|
||||
"@babel/plugin-transform-runtime": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
|
||||
"@babel/plugin-transform-runtime": "^7.1.0",
|
||||
"@babel/preset-env": "^7.1.0",
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"@babel/register": "^7.0.0",
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"babel-core": "^7.0.0-0",
|
||||
"babel-eslint": "^9.0.0",
|
||||
"babel-jest": "^23.4.0",
|
||||
"babel-loader": "8.0.0-beta.4",
|
||||
"babel-jest": "^23.6.0",
|
||||
"babel-loader": "^8.0.2",
|
||||
"babel-plugin-transform-charcodes": "^0.1.0",
|
||||
"browserify": "^16.2.2",
|
||||
"bundle-collapser": "^1.2.1",
|
||||
@@ -32,9 +31,9 @@
|
||||
"charcodes": "^0.1.0",
|
||||
"derequire": "^2.0.2",
|
||||
"enhanced-resolve": "^3.0.0",
|
||||
"eslint": "^5.3.0",
|
||||
"eslint": "^5.6.0",
|
||||
"eslint-config-babel": "^8.0.0",
|
||||
"eslint-plugin-flowtype": "^2.50.0",
|
||||
"eslint-plugin-flowtype": "^2.50.1",
|
||||
"eslint-plugin-local-rules": "0.1.0",
|
||||
"eslint-plugin-prettier": "^2.6.2",
|
||||
"flow-bin": "^0.80.0",
|
||||
@@ -48,15 +47,15 @@
|
||||
"gulp-uglify": "^3.0.0",
|
||||
"gulp-util": "^3.0.7",
|
||||
"gulp-watch": "^5.0.0",
|
||||
"husky": "^0.14.3",
|
||||
"jest": "^23.4.1",
|
||||
"husky": "^1.0.0-rc.15",
|
||||
"jest": "^23.6.0",
|
||||
"lerna": "^2.11.0",
|
||||
"lerna-changelog": "^0.5.0",
|
||||
"lint-staged": "^6.0.1",
|
||||
"lint-staged": "^7.3.0",
|
||||
"lodash": "^4.17.10",
|
||||
"merge-stream": "^1.0.1",
|
||||
"output-file-sync": "^2.0.0",
|
||||
"prettier": "^1.13.7",
|
||||
"prettier": "^1.14.3",
|
||||
"pump": "^1.0.2",
|
||||
"rimraf": "^2.4.3",
|
||||
"rollup-plugin-babel": "^4.0.0-beta.0",
|
||||
@@ -81,6 +80,11 @@
|
||||
"eslint --format=codeframe"
|
||||
]
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"jest": {
|
||||
"collectCoverageFrom": [
|
||||
"packages/*/src/**/*.mjs",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/cli",
|
||||
"version": "7.1.0",
|
||||
"version": "7.1.2",
|
||||
"description": "Babel command line.",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
|
||||
@@ -221,36 +221,47 @@ export default function parseArgv(args: Array<string>) {
|
||||
|
||||
const opts = commander.opts();
|
||||
|
||||
return {
|
||||
babelOptions: {
|
||||
presets: opts.presets,
|
||||
plugins: opts.plugins,
|
||||
rootMode: opts.rootMode,
|
||||
configFile: opts.configFile,
|
||||
envName: opts.envName,
|
||||
sourceType: opts.sourceType,
|
||||
ignore: opts.ignore,
|
||||
only: opts.only,
|
||||
retainLines: opts.retainLines,
|
||||
compact: opts.compact,
|
||||
minified: opts.minified,
|
||||
auxiliaryCommentBefore: opts.auxiliaryCommentBefore,
|
||||
auxiliaryCommentAfter: opts.auxiliaryCommentAfter,
|
||||
sourceMaps: opts.sourceMaps,
|
||||
sourceFileName: opts.sourceFileName,
|
||||
sourceRoot: opts.sourceRoot,
|
||||
moduleRoot: opts.moduleRoot,
|
||||
moduleIds: opts.moduleIds,
|
||||
moduleId: opts.moduleId,
|
||||
const babelOptions = {
|
||||
presets: opts.presets,
|
||||
plugins: opts.plugins,
|
||||
rootMode: opts.rootMode,
|
||||
configFile: opts.configFile,
|
||||
envName: opts.envName,
|
||||
sourceType: opts.sourceType,
|
||||
ignore: opts.ignore,
|
||||
only: opts.only,
|
||||
retainLines: opts.retainLines,
|
||||
compact: opts.compact,
|
||||
minified: opts.minified,
|
||||
auxiliaryCommentBefore: opts.auxiliaryCommentBefore,
|
||||
auxiliaryCommentAfter: opts.auxiliaryCommentAfter,
|
||||
sourceMaps: opts.sourceMaps,
|
||||
sourceFileName: opts.sourceFileName,
|
||||
sourceRoot: opts.sourceRoot,
|
||||
moduleRoot: opts.moduleRoot,
|
||||
moduleIds: opts.moduleIds,
|
||||
moduleId: opts.moduleId,
|
||||
|
||||
// Commander will default the "--no-" arguments to true, but we want to
|
||||
// leave them undefined so that @babel/core can handle the
|
||||
// default-assignment logic on its own.
|
||||
babelrc: opts.babelrc === true ? undefined : opts.babelrc,
|
||||
highlightCode:
|
||||
opts.highlightCode === true ? undefined : opts.highlightCode,
|
||||
comments: opts.comments === true ? undefined : opts.comments,
|
||||
},
|
||||
// Commander will default the "--no-" arguments to true, but we want to
|
||||
// leave them undefined so that @babel/core can handle the
|
||||
// default-assignment logic on its own.
|
||||
babelrc: opts.babelrc === true ? undefined : opts.babelrc,
|
||||
highlightCode: opts.highlightCode === true ? undefined : opts.highlightCode,
|
||||
comments: opts.comments === true ? undefined : opts.comments,
|
||||
};
|
||||
|
||||
// If the @babel/cli version is newer than the @babel/core version, and we have added
|
||||
// new options for @babel/core, we'll potentially get option validation errors from
|
||||
// @babel/core. To avoid that, we delete undefined options, so @babel/core will only
|
||||
// give the error if users actually pass an unsupported CLI option.
|
||||
for (const key of Object.keys(babelOptions)) {
|
||||
if (babelOptions[key] === undefined) {
|
||||
delete babelOptions[key];
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
babelOptions,
|
||||
cliOptions: {
|
||||
filename: opts.filename,
|
||||
filenames,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/core",
|
||||
"version": "7.1.0",
|
||||
"version": "7.1.2",
|
||||
"description": "Babel compiler core.",
|
||||
"main": "lib/index.js",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
@@ -34,12 +34,12 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
"@babel/generator": "^7.0.0",
|
||||
"@babel/helpers": "^7.1.0",
|
||||
"@babel/parser": "^7.1.0",
|
||||
"@babel/template": "^7.1.0",
|
||||
"@babel/generator": "^7.1.2",
|
||||
"@babel/helpers": "^7.1.2",
|
||||
"@babel/parser": "^7.1.2",
|
||||
"@babel/template": "^7.1.2",
|
||||
"@babel/traverse": "^7.1.0",
|
||||
"@babel/types": "^7.0.0",
|
||||
"@babel/types": "^7.1.2",
|
||||
"convert-source-map": "^1.1.0",
|
||||
"debug": "^3.1.0",
|
||||
"json5": "^0.5.0",
|
||||
|
||||
@@ -94,7 +94,7 @@ export default function mergeSourceMap(
|
||||
}
|
||||
|
||||
function makeMappingKey(item: { line: number, columnStart: number }) {
|
||||
return JSON.stringify([item.line, item.columnStart]);
|
||||
return `${item.line}/${item.columnStart}`;
|
||||
}
|
||||
|
||||
function eachOverlappingGeneratedOutputRange(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/generator",
|
||||
"version": "7.0.0",
|
||||
"version": "7.1.2",
|
||||
"description": "Turns an AST into code.",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
@@ -14,7 +14,7 @@
|
||||
"lib"
|
||||
],
|
||||
"dependencies": {
|
||||
"@babel/types": "^7.0.0",
|
||||
"@babel/types": "^7.1.2",
|
||||
"jsesc": "^2.5.1",
|
||||
"lodash": "^4.17.10",
|
||||
"source-map": "^0.5.0",
|
||||
|
||||
@@ -5,7 +5,9 @@ export function UnaryExpression(node: Object) {
|
||||
if (
|
||||
node.operator === "void" ||
|
||||
node.operator === "delete" ||
|
||||
node.operator === "typeof"
|
||||
node.operator === "typeof" ||
|
||||
// throwExpressions
|
||||
node.operator === "throw"
|
||||
) {
|
||||
this.word(node.operator);
|
||||
this.space();
|
||||
|
||||
@@ -127,6 +127,9 @@ export function TSIndexSignature(node) {
|
||||
export function TSAnyKeyword() {
|
||||
this.word("any");
|
||||
}
|
||||
export function TSUnknownKeyword() {
|
||||
this.word("unknown");
|
||||
}
|
||||
export function TSNumberKeyword() {
|
||||
this.word("number");
|
||||
}
|
||||
|
||||
@@ -209,6 +209,7 @@ export function ConditionalExpression(node: Object, parent: Object): boolean {
|
||||
t.isBinary(parent) ||
|
||||
t.isConditionalExpression(parent, { test: node }) ||
|
||||
t.isAwaitExpression(parent) ||
|
||||
t.isOptionalMemberExpression(parent) ||
|
||||
t.isTaggedTemplateExpression(parent) ||
|
||||
t.isTSTypeAssertion(parent) ||
|
||||
t.isTSAsExpression(parent)
|
||||
@@ -219,6 +220,13 @@ export function ConditionalExpression(node: Object, parent: Object): boolean {
|
||||
return UnaryLike(node, parent);
|
||||
}
|
||||
|
||||
export function OptionalMemberExpression(
|
||||
node: Object,
|
||||
parent: Object,
|
||||
): boolean {
|
||||
return t.isCallExpression(parent) || t.isMemberExpression(parent);
|
||||
}
|
||||
|
||||
export function AssignmentExpression(node: Object): boolean {
|
||||
if (t.isObjectPattern(node.left)) {
|
||||
return true;
|
||||
|
||||
1
packages/babel-generator/test/fixtures/regression/throw-expression/input.js
vendored
Normal file
1
packages/babel-generator/test/fixtures/regression/throw-expression/input.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
() => throw new X();
|
||||
1
packages/babel-generator/test/fixtures/regression/throw-expression/options.json
vendored
Normal file
1
packages/babel-generator/test/fixtures/regression/throw-expression/options.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{ "plugins": ["throwExpressions"] }
|
||||
1
packages/babel-generator/test/fixtures/regression/throw-expression/output.js
vendored
Normal file
1
packages/babel-generator/test/fixtures/regression/throw-expression/output.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
() => throw new X();
|
||||
@@ -14,3 +14,7 @@ foo?.["bar"]?.foo;
|
||||
0.?.toString();
|
||||
0.5?.toString();
|
||||
1.000?.toString();
|
||||
|
||||
(a?.b).c;
|
||||
(a ? b : c)?.d;
|
||||
(a?.b)()
|
||||
|
||||
@@ -11,4 +11,7 @@ foo?.["bar"].foo;
|
||||
foo?.["bar"]?.foo;
|
||||
0.?.toString();
|
||||
0.5?.toString();
|
||||
1.000?.toString();
|
||||
1.000?.toString();
|
||||
(a?.b).c;
|
||||
(a ? b : c)?.d;
|
||||
(a?.b)();
|
||||
@@ -1,4 +1,5 @@
|
||||
let a: any;
|
||||
let un: unknown;
|
||||
let b: boolean;
|
||||
let ne: never;
|
||||
let nul: null;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
let a: any;
|
||||
let un: unknown;
|
||||
let b: boolean;
|
||||
let ne: never;
|
||||
let nul: null;
|
||||
@@ -7,4 +8,4 @@ let o: object;
|
||||
let st: string;
|
||||
let sy: symbol;
|
||||
let u: undefined;
|
||||
let v: void;
|
||||
let v: void;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/helper-transform-fixture-test-runner",
|
||||
"version": "7.1.0",
|
||||
"version": "7.1.2",
|
||||
"description": "Transform test runner for @babel/helper-fixtures module",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
@@ -12,9 +12,10 @@
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
"@babel/core": "^7.1.0",
|
||||
"@babel/core": "^7.1.2",
|
||||
"@babel/helper-fixtures": "^7.0.0",
|
||||
"@babel/polyfill": "^7.0.0",
|
||||
"babel-check-duplicated-nodes": "^1.0.0",
|
||||
"jest": "^22.4.2",
|
||||
"jest-diff": "^22.4.0",
|
||||
"lodash": "^4.17.10",
|
||||
|
||||
@@ -15,6 +15,7 @@ import assert from "assert";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import vm from "vm";
|
||||
import checkDuplicatedNodes from "babel-check-duplicated-nodes";
|
||||
|
||||
import diff from "jest-diff";
|
||||
|
||||
@@ -129,51 +130,6 @@ function wrapPackagesArray(type, names, optionsDir) {
|
||||
});
|
||||
}
|
||||
|
||||
function checkDuplicatedNodes(ast) {
|
||||
const nodes = new WeakSet();
|
||||
const parents = new WeakMap();
|
||||
|
||||
const setParent = (child, parent) => {
|
||||
if (typeof child === "object" && child !== null) {
|
||||
let p = parents.get(child);
|
||||
if (!p) {
|
||||
p = [];
|
||||
parents.set(child, p);
|
||||
}
|
||||
p.unshift(parent);
|
||||
}
|
||||
};
|
||||
const registerChildren = node => {
|
||||
for (const key in node) {
|
||||
if (Array.isArray(node[key])) {
|
||||
node[key].forEach(child => setParent(child, node));
|
||||
} else {
|
||||
setParent(node[key], node);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const hidePrivateProperties = (key, val) => {
|
||||
// Hides properties like _shadowedFunctionLiteral,
|
||||
// which makes the AST circular
|
||||
if (key[0] === "_") return "[Private]";
|
||||
return val;
|
||||
};
|
||||
|
||||
babel.types.traverseFast(ast, node => {
|
||||
registerChildren(node);
|
||||
if (nodes.has(node)) {
|
||||
throw new Error(
|
||||
"Do not reuse nodes. Use `t.cloneNode` to copy them.\n" +
|
||||
JSON.stringify(node, hidePrivateProperties, 2) +
|
||||
"\nParent:\n" +
|
||||
JSON.stringify(parents.get(node), hidePrivateProperties, 2),
|
||||
);
|
||||
}
|
||||
nodes.add(node);
|
||||
});
|
||||
}
|
||||
|
||||
function run(task) {
|
||||
const actual = task.actual;
|
||||
const expected = task.expect;
|
||||
@@ -222,7 +178,7 @@ function run(task) {
|
||||
if (execCode) {
|
||||
const execOpts = getOpts(exec);
|
||||
result = babel.transform(execCode, execOpts);
|
||||
checkDuplicatedNodes(result.ast);
|
||||
checkDuplicatedNodes(babel, result.ast);
|
||||
execCode = result.code;
|
||||
|
||||
try {
|
||||
@@ -244,7 +200,7 @@ function run(task) {
|
||||
"<CWD>",
|
||||
);
|
||||
|
||||
checkDuplicatedNodes(result.ast);
|
||||
checkDuplicatedNodes(babel, result.ast);
|
||||
if (
|
||||
!expected.code &&
|
||||
expectedCode &&
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/helpers",
|
||||
"version": "7.1.0",
|
||||
"version": "7.1.2",
|
||||
"description": "Collection of helper functions used by Babel transforms.",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
@@ -11,9 +11,9 @@
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helpers",
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/template": "^7.1.0",
|
||||
"@babel/template": "^7.1.2",
|
||||
"@babel/traverse": "^7.1.0",
|
||||
"@babel/types": "^7.0.0"
|
||||
"@babel/types": "^7.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helper-plugin-test-runner": "^7.0.0"
|
||||
|
||||
@@ -1232,7 +1232,7 @@ helpers.decorate = helper("7.0.2")`
|
||||
} else if (def.kind === "set") {
|
||||
descriptor = { set: def.value, configurable: true, enumerable: false };
|
||||
} else if (def.kind === "field") {
|
||||
descriptor = { configurable: true, writable: true, enumerable: false };
|
||||
descriptor = { configurable: true, writable: true, enumerable: true };
|
||||
}
|
||||
|
||||
var element /*: ElementDescriptor */ = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/parser",
|
||||
"version": "7.1.0",
|
||||
"version": "7.1.2",
|
||||
"description": "A JavaScript parser",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
|
||||
@@ -57,6 +57,8 @@ function keywordTypeFromName(
|
||||
return "TSSymbolKeyword";
|
||||
case "undefined":
|
||||
return "TSUndefinedKeyword";
|
||||
case "unknown":
|
||||
return "TSUnknownKeyword";
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@@ -1119,6 +1119,7 @@ export type TsTypeBase = NodeBase;
|
||||
|
||||
export type TsKeywordTypeType =
|
||||
| "TSAnyKeyword"
|
||||
| "TSUnknownKeyword"
|
||||
| "TSNumberKeyword"
|
||||
| "TSObjectKeyword"
|
||||
| "TSBooleanKeyword"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"The rest element has to be the last element when destructuring (1:1)"
|
||||
"throws": "The rest element has to be the last element when destructuring (1:1)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (2:8)"
|
||||
"throws": "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (2:8)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"You're trying to assign to a parenthesized expression, eg. instead of `([a]) = 0` use `([a] = 0)` (1:1)"
|
||||
"throws": "You're trying to assign to a parenthesized expression, eg. instead of `([a]) = 0` use `([a] = 0)` (1:1)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:1)"
|
||||
"throws": "You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:1)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`Foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
"throws": "`Foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:20)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:20)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo4` has already been exported. Exported identifiers must be unique. (2:50)"
|
||||
"throws": "`foo4` has already been exported. Exported identifiers must be unique. (2:50)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo4` has already been exported. Exported identifiers must be unique. (2:49)"
|
||||
"throws": "`foo4` has already been exported. Exported identifiers must be unique. (2:49)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo4` has already been exported. Exported identifiers must be unique. (2:58)"
|
||||
"throws": "`foo4` has already been exported. Exported identifiers must be unique. (2:58)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:21)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:21)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo2` has already been exported. Exported identifiers must be unique. (2:13)"
|
||||
"throws": "`foo2` has already been exported. Exported identifiers must be unique. (2:13)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:22)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:22)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`bar` has already been exported. Exported identifiers must be unique. (2:13)"
|
||||
"throws": "`bar` has already been exported. Exported identifiers must be unique. (2:13)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:28)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:28)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:29)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:29)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:15)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:15)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:14)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:14)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:14)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:14)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:15)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:15)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`Foo` has already been exported. Exported identifiers must be unique. (2:15)"
|
||||
"throws": "`Foo` has already been exported. Exported identifiers must be unique. (2:15)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`Foo` has already been exported. Exported identifiers must be unique. (2:14)"
|
||||
"throws": "`Foo` has already been exported. Exported identifiers must be unique. (2:14)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:0)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:13)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:13)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"`foo` has already been exported. Exported identifiers must be unique. (2:9)"
|
||||
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:9)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"Only expressions, functions or classes are allowed as the `default` export. (1:15)"
|
||||
"throws": "Only expressions, functions or classes are allowed as the `default` export. (1:15)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"Only expressions, functions or classes are allowed as the `default` export. (1:15)"
|
||||
"throws": "Only expressions, functions or classes are allowed as the `default` export. (1:15)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"Only expressions, functions or classes are allowed as the `default` export. (1:15)"
|
||||
"throws": "Only expressions, functions or classes are allowed as the `default` export. (1:15)"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"ES2015 named imports do not destructure. Use another statement for destructuring after the import. (1:19)",
|
||||
"throws": "ES2015 named imports do not destructure. Use another statement for destructuring after the import. (1:19)",
|
||||
"sourceType": "module"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:7)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:7)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:15)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:15)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:7)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:7)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:17)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:17)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:8)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:8)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:3)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:3)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:3)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:3)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (2:9)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:9)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:1)"
|
||||
"throws": "Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:1)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)"
|
||||
"throws": "Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)"
|
||||
"throws": "Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"await* has been removed from the async functions proposal. Use Promise.all() instead. (2:2)"
|
||||
"throws": "await* has been removed from the async functions proposal. Use Promise.all() instead. (2:2)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'classProperties' (3:2)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'classProperties' (3:2)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
|
||||
"throws": "'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
|
||||
"throws": "'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (1:21)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:21)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (1:16)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:16)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (1:25)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:25)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
|
||||
"throws": "'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"yield is not allowed in the parameters of an arrow function inside a generator (1:21)"
|
||||
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:21)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"Error parsing regular expression: Invalid regular expression: /(s/: Unterminated group (1:9)"
|
||||
"throws": "Error parsing regular expression: Invalid regular expression: /(s/: Unterminated group (1:9)"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'bigInt' (1:1)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'bigInt' (1:1)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'classPrivateProperties' (2:3)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'classPrivateProperties' (2:3)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'numericSeparator' (1:17)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'numericSeparator' (1:17)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'asyncGenerators' (1:15)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'asyncGenerators' (1:15)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"plugins": ["flow"],
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'classProperties' (2:14)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'classProperties' (2:14)"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'classProperties' (2:6)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'classProperties' (2:6)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'classProperties' (2:5)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'classProperties' (2:5)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling one of the following parser plugin(s): 'decorators-legacy, decorators' (1:0)",
|
||||
"throws": "This experimental syntax requires enabling one of the following parser plugin(s): 'decorators-legacy, decorators' (1:0)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'doExpressions' (1:1)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'doExpressions' (1:1)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'dynamicImport' (1:8)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'dynamicImport' (1:8)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'exportNamespaceFrom' (1:9)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'exportNamespaceFrom' (1:9)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'importMeta' (1:17)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'importMeta' (1:17)",
|
||||
"sourceType": "module",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'objectRestSpread' (1:2)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'objectRestSpread' (1:2)",
|
||||
"plugins": []
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'optionalChaining' (1:1)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalChaining' (1:1)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'classProperties' (3:2)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'classProperties' (3:2)"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"throws":
|
||||
"This experimental syntax requires enabling the parser plugin: 'classPrivateMethods' (3:2)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'classPrivateMethods' (3:2)",
|
||||
"plugins": ["classPrivateProperties"]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"plugins": ["classPrivateProperties"],
|
||||
"throws":
|
||||
"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (4:13)"
|
||||
"throws": "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (4:13)"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"plugins": ["classProperties"],
|
||||
"throws":
|
||||
"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (4:12)"
|
||||
"throws": "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (4:12)"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
|
||||
"throws":
|
||||
"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax (1:15)"
|
||||
"throws": "Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax (1:15)"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"plugins": ["decorators"],
|
||||
"throws":
|
||||
"The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'."
|
||||
"throws": "The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'."
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
|
||||
"throws":
|
||||
"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax (1:7)"
|
||||
"throws": "Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax (1:7)"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"throws":
|
||||
"This experimental syntax requires enabling one of the following parser plugin(s): 'decorators, decorators-legacy' (1:7)",
|
||||
"throws": "This experimental syntax requires enabling one of the following parser plugin(s): 'decorators, decorators-legacy' (1:7)",
|
||||
"plugins": null
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user