diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 0d49b275c6..a04d759349 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -109,6 +109,7 @@ module.exports = { ), }, ], + "@babel/development-internal/report-error-message-format": "error", }, }, { diff --git a/eslint/babel-eslint-plugin-development-internal/README.md b/eslint/babel-eslint-plugin-development-internal/README.md index b412c36013..2d8fa5e626 100644 --- a/eslint/babel-eslint-plugin-development-internal/README.md +++ b/eslint/babel-eslint-plugin-development-internal/README.md @@ -68,3 +68,42 @@ and } } ``` + +### `@babel/development-internal/report-error-message-format` + +This rule is inspired by https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/blob/master/docs/rules/report-message-format.md. + +Intended for use in `packages/babel-parser/src/**/*`. When enabled, this rule warns for inconsistently error messages format in arguments of `makeErrorTemplates` function calls. + +Basically, it starts with an uppercase Latin letter(A~Z) and ends with a period(.) or a question(?). But it can start with `'keyword'` or `` `code` `` to include JavaScript keywords or code in error messages. + +valid: + +```js +makeErrorTemplates({ ThisIsAnError: "This is an error." }); +makeErrorTemplates({ ThisIsAnError: "'this' is an error." }); +makeErrorTemplates({ ThisIsAnError: "`this` is an error." }); +makeErrorTemplates({ ThisIsAnError: "This is an error?" }); +makeErrorTemplates({ ThisIsAnError: "'this' is an error?" }); +makeErrorTemplates({ ThisIsAnError: "`this` is an error?" }); +``` + +invalid: + +```js +makeErrorTemplates({ ThisIsAnError: 'this is an error.' }); +makeErrorTemplates({ ThisIsAnError: 'This is an error' }); +makeErrorTemplates({ ThisIsAnError: 'this is an error?' }); +makeErrorTemplates({ ThisIsAnError: '`this` is an error' }); +makeErrorTemplates({ ThisIsAnError: "'this' is an error" }); +``` + +Example configuration: + +```js +{ + rules: { + "@babel/development-internal/report-error-message-format": "error" + } +} +``` diff --git a/eslint/babel-eslint-plugin-development-internal/src/index.js b/eslint/babel-eslint-plugin-development-internal/src/index.js index 41efa01891..b64e280d23 100644 --- a/eslint/babel-eslint-plugin-development-internal/src/index.js +++ b/eslint/babel-eslint-plugin-development-internal/src/index.js @@ -1,7 +1,9 @@ import dryErrorMessages from "./rules/dry-error-messages"; +import reportErrorMessageFormat from "./rules/report-error-message-format"; export const rules = { "dry-error-messages": dryErrorMessages, + "report-error-message-format": reportErrorMessageFormat, }; export default { rules }; diff --git a/eslint/babel-eslint-plugin-development-internal/src/rules/report-error-message-format.js b/eslint/babel-eslint-plugin-development-internal/src/rules/report-error-message-format.js new file mode 100644 index 0000000000..344c8f1e11 --- /dev/null +++ b/eslint/babel-eslint-plugin-development-internal/src/rules/report-error-message-format.js @@ -0,0 +1,31 @@ +const messageId = "mustMatchPattern"; + +const pattern = /(('.*')|(`.*`)|[A-Z]).*(\.|\?)$/s; + +export default { + meta: { + type: "suggestion", + docs: { + description: "enforce @babel/parser's error message formatting.", + }, + messages: { + [messageId]: `Report message does not match the pattern ${pattern.toString()}.`, + }, + }, + create({ report }) { + return { + "CallExpression[callee.type='Identifier'][callee.name='makeErrorTemplates'] > ObjectExpression > Property[value.type='Literal']"( + node, + ) { + const { value } = node; + if (typeof value.value === "string" && pattern.test(value.value)) { + return; + } + report({ + node: value, + messageId, + }); + }, + }; + }, +}; diff --git a/eslint/babel-eslint-plugin-development-internal/test/rules/report-error-message-formtat.js b/eslint/babel-eslint-plugin-development-internal/test/rules/report-error-message-formtat.js new file mode 100644 index 0000000000..453eba7462 --- /dev/null +++ b/eslint/babel-eslint-plugin-development-internal/test/rules/report-error-message-formtat.js @@ -0,0 +1,44 @@ +import RuleTester from "../../../babel-eslint-shared-fixtures/utils/RuleTester"; +import rule from "../../src/rules/report-error-message-format"; + +const ruleTester = new RuleTester(); + +ruleTester.run("report-error-message-format", rule, { + valid: [ + "makeErrorTemplates({});", + 'makeErrorTemplates({ ThisIsAnError: "This is an error." });', + `makeErrorTemplates({ ThisIsAnError: "'this' is an error." });`, + `makeErrorTemplates({ ThisIsAnError: "\`this\` is an error." });`, + `makeErrorTemplates({ ThisIsAnError: "This is an error?" });`, + `makeErrorTemplates({ ThisIsAnError: "'this' is an error?" });`, + `makeErrorTemplates({ ThisIsAnError: "\`this\` is an error?" });`, + 'makeErrorTemplates({ ThisIsAnError: "This is\\nan error." });', + `makeErrorTemplates({ ThisIsAnError: "'this' is\\nan error." });`, + `makeErrorTemplates({ ThisIsAnError: "\`this\` is\\nan error." });`, + `makeErrorTemplates({ ThisIsAnError: "This is\\nan error?" });`, + `makeErrorTemplates({ ThisIsAnError: "'this' is\\nan error?" });`, + `makeErrorTemplates({ ThisIsAnError: "\`this\` is\\nan error?" });`, + ], + invalid: [ + { + code: "makeErrorTemplates({ ThisIsAnError: 'this is an error.' });", + errors: [{ messageId: "mustMatchPattern" }], + }, + { + code: "makeErrorTemplates({ ThisIsAnError: 'This is an error' });", + errors: [{ messageId: "mustMatchPattern" }], + }, + { + code: "makeErrorTemplates({ ThisIsAnError: 'this is an error?' });", + errors: [{ messageId: "mustMatchPattern" }], + }, + { + code: "makeErrorTemplates({ ThisIsAnError: '`this` is an error' });", + errors: [{ messageId: "mustMatchPattern" }], + }, + { + code: `makeErrorTemplates({ ThisIsAnError: "'this' is an error" });`, + errors: [{ messageId: "mustMatchPattern" }], + }, + ], +}); diff --git a/packages/babel-cli/test/fixtures/babel/stdin --filename windows/stderr.txt b/packages/babel-cli/test/fixtures/babel/stdin --filename windows/stderr.txt index b4566e9fe6..453c8d3ebb 100644 --- a/packages/babel-cli/test/fixtures/babel/stdin --filename windows/stderr.txt +++ b/packages/babel-cli/test/fixtures/babel/stdin --filename windows/stderr.txt @@ -1 +1 @@ -SyntaxError: \test.js: Missing semicolon (2:10) +SyntaxError: \test.js: Missing semicolon. (2:10) diff --git a/packages/babel-cli/test/fixtures/babel/stdin --filename/stderr.txt b/packages/babel-cli/test/fixtures/babel/stdin --filename/stderr.txt index a2d3423157..8087b6e978 100644 --- a/packages/babel-cli/test/fixtures/babel/stdin --filename/stderr.txt +++ b/packages/babel-cli/test/fixtures/babel/stdin --filename/stderr.txt @@ -1 +1 @@ -SyntaxError: /test.js: Missing semicolon (2:10) +SyntaxError: /test.js: Missing semicolon. (2:10) diff --git a/packages/babel-core/test/fixtures/transformation/errors/syntax/options.json b/packages/babel-core/test/fixtures/transformation/errors/syntax/options.json index 937e44f2f4..f0cca2940f 100644 --- a/packages/babel-core/test/fixtures/transformation/errors/syntax/options.json +++ b/packages/babel-core/test/fixtures/transformation/errors/syntax/options.json @@ -1,3 +1,3 @@ { - "throws": "Missing semicolon (2:10)" + "throws": "Missing semicolon. (2:10)" } diff --git a/packages/babel-parser/src/parser/error-message.js b/packages/babel-parser/src/parser/error-message.js index dd582890d4..eba5a60cb2 100644 --- a/packages/babel-parser/src/parser/error-message.js +++ b/packages/babel-parser/src/parser/error-message.js @@ -11,217 +11,218 @@ import { makeErrorTemplates, ErrorCodes } from "./error"; // The Errors key follows https://cs.chromium.org/chromium/src/v8/src/common/message-template.h unless it does not exist export const ErrorMessages = makeErrorTemplates( { - AccessorIsGenerator: "A %0ter cannot be a generator", + AccessorIsGenerator: "A %0ter cannot be a generator.", ArgumentsInClass: - "'arguments' is only allowed in functions and class methods", + "'arguments' is only allowed in functions and class methods.", AsyncFunctionInSingleStatementContext: - "Async functions can only be declared at the top level or inside a block", + "Async functions can only be declared at the top level or inside a block.", AwaitBindingIdentifier: - "Can not use 'await' as identifier inside an async function", + "Can not use 'await' as identifier inside an async function.", AwaitBindingIdentifierInStaticBlock: - "Can not use 'await' as identifier inside a static block", + "Can not use 'await' as identifier inside a static block.", AwaitExpressionFormalParameter: - "await is not allowed in async function parameters", + "'await' is not allowed in async function parameters.", AwaitNotInAsyncContext: - "'await' is only allowed within async functions and at the top levels of modules", - AwaitNotInAsyncFunction: "'await' is only allowed within async functions", - BadGetterArity: "getter must not have any formal parameters", - BadSetterArity: "setter must have exactly one formal parameter", + "'await' is only allowed within async functions and at the top levels of modules.", + AwaitNotInAsyncFunction: "'await' is only allowed within async functions.", + BadGetterArity: "A 'get' accesor must not have any formal parameters.", + BadSetterArity: "A 'set' accesor must have exactly one formal parameter.", BadSetterRestParameter: - "setter function argument must not be a rest parameter", - ConstructorClassField: "Classes may not have a field named 'constructor'", + "A 'set' accesor function argument must not be a rest parameter.", + ConstructorClassField: "Classes may not have a field named 'constructor'.", ConstructorClassPrivateField: - "Classes may not have a private field named '#constructor'", - ConstructorIsAccessor: "Class constructor may not be an accessor", - ConstructorIsAsync: "Constructor can't be an async function", - ConstructorIsGenerator: "Constructor can't be a generator", - DeclarationMissingInitializer: "%0 require an initialization value", + "Classes may not have a private field named '#constructor'.", + ConstructorIsAccessor: "Class constructor may not be an accessor.", + ConstructorIsAsync: "Constructor can't be an async function.", + ConstructorIsGenerator: "Constructor can't be a generator.", + DeclarationMissingInitializer: "'%0' require an initialization value.", DecoratorBeforeExport: - "Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax", + "Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.", DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?", DecoratorExportClass: "Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.", - DecoratorSemicolon: "Decorators must not be followed by a semicolon", - DecoratorStaticBlock: "Decorators can't be used with a static block", - DeletePrivateField: "Deleting a private field is not allowed", + DecoratorSemicolon: "Decorators must not be followed by a semicolon.", + DecoratorStaticBlock: "Decorators can't be used with a static block.", + DeletePrivateField: "Deleting a private field is not allowed.", DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.", - DuplicateConstructor: "Duplicate constructor in the same class", + DuplicateConstructor: "Duplicate constructor in the same class.", DuplicateDefaultExport: "Only one default export allowed per module.", DuplicateExport: "`%0` has already been exported. Exported identifiers must be unique.", - DuplicateProto: "Redefinition of __proto__ property", - DuplicateRegExpFlags: "Duplicate regular expression flag", - ElementAfterRest: "Rest element must be last element", - EscapedCharNotAnIdentifier: "Invalid Unicode escape", + DuplicateProto: "Redefinition of __proto__ property.", + DuplicateRegExpFlags: "Duplicate regular expression flag.", + ElementAfterRest: "Rest element must be last element.", + EscapedCharNotAnIdentifier: "Invalid Unicode escape.", ExportBindingIsString: "A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '%0' as '%1' } from 'some-module'`?", ExportDefaultFromAsIdentifier: - "'from' is not allowed as an identifier after 'export default'", + "'from' is not allowed as an identifier after 'export default'.", ForInOfLoopInitializer: - "%0 loop variable declaration may not have an initializer", + "'%0' loop variable declaration may not have an initializer.", ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.", GeneratorInSingleStatementContext: - "Generators can only be declared at the top level or inside a block", - IllegalBreakContinue: "Unsyntactic %0", + "Generators can only be declared at the top level or inside a block.", + IllegalBreakContinue: "Unsyntactic %0.", IllegalLanguageModeDirective: - "Illegal 'use strict' directive in function with non-simple parameter list", - IllegalReturn: "'return' outside of function", + "Illegal 'use strict' directive in function with non-simple parameter list.", + IllegalReturn: "'return' outside of function.", ImportBindingIsString: 'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?', ImportCallArgumentTrailingComma: - "Trailing comma is disallowed inside import(...) arguments", - ImportCallArity: "import() requires exactly %0", - ImportCallNotNewExpression: "Cannot use new with import(...)", - ImportCallSpreadArgument: "... is not allowed in import()", - InvalidBigIntLiteral: "Invalid BigIntLiteral", - InvalidCodePoint: "Code point out of bounds", - InvalidDecimal: "Invalid decimal", - InvalidDigit: "Expected number in radix %0", - InvalidEscapeSequence: "Bad character escape sequence", - InvalidEscapeSequenceTemplate: "Invalid escape sequence in template", - InvalidEscapedReservedWord: "Escape sequence in keyword %0", - InvalidIdentifier: "Invalid identifier %0", - InvalidLhs: "Invalid left-hand side in %0", - InvalidLhsBinding: "Binding invalid left-hand side in %0", - InvalidNumber: "Invalid number", + "Trailing comma is disallowed inside import(...) arguments.", + ImportCallArity: "`import()` requires exactly %0.", + ImportCallNotNewExpression: "Cannot use new with import(...).", + ImportCallSpreadArgument: "`...` is not allowed in `import()`.", + InvalidBigIntLiteral: "Invalid BigIntLiteral.", + InvalidCodePoint: "Code point out of bounds.", + InvalidDecimal: "Invalid decimal.", + InvalidDigit: "Expected number in radix %0.", + InvalidEscapeSequence: "Bad character escape sequence.", + InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", + InvalidEscapedReservedWord: "Escape sequence in keyword %0.", + InvalidIdentifier: "Invalid identifier %0.", + InvalidLhs: "Invalid left-hand side in %0.", + InvalidLhsBinding: "Binding invalid left-hand side in %0.", + InvalidNumber: "Invalid number.", InvalidOrMissingExponent: - "Floating-point numbers require a valid exponent after the 'e'", - InvalidOrUnexpectedToken: "Unexpected character '%0'", - InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern", - InvalidPrivateFieldResolution: "Private name #%0 is not defined", - InvalidPropertyBindingPattern: "Binding member expression", + "Floating-point numbers require a valid exponent after the 'e'.", + InvalidOrUnexpectedToken: "Unexpected character '%0'.", + InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", + InvalidPrivateFieldResolution: "Private name #%0 is not defined.", + InvalidPropertyBindingPattern: "Binding member expression.", InvalidRecordProperty: - "Only properties and spread elements are allowed in record definitions", - InvalidRestAssignmentPattern: "Invalid rest operator's argument", - LabelRedeclaration: "Label '%0' is already declared", + "Only properties and spread elements are allowed in record definitions.", + InvalidRestAssignmentPattern: "Invalid rest operator's argument.", + LabelRedeclaration: "Label '%0' is already declared.", LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations.", - LineTerminatorBeforeArrow: "No line break is allowed before '=>'", - MalformedRegExpFlags: "Invalid regular expression flag", - MissingClassName: "A class name is required", + LineTerminatorBeforeArrow: "No line break is allowed before '=>'.", + MalformedRegExpFlags: "Invalid regular expression flag.", + MissingClassName: "A class name is required.", MissingEqInAssignment: "Only '=' operator can be used for specifying default value.", - MissingSemicolon: "Missing semicolon", - MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX", + MissingSemicolon: "Missing semicolon.", + MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.", MixingCoalesceWithLogical: - "Nullish coalescing operator(??) requires parens when mixing with logical operators", + "Nullish coalescing operator(??) requires parens when mixing with logical operators.", ModuleAttributeDifferentFromType: - "The only accepted module attribute is `type`", + "The only accepted module attribute is `type`.", ModuleAttributeInvalidValue: - "Only string literals are allowed as module attribute values", + "Only string literals are allowed as module attribute values.", ModuleAttributesWithDuplicateKeys: - 'Duplicate key "%0" is not allowed in module attributes', + 'Duplicate key "%0" is not allowed in module attributes.', ModuleExportNameHasLoneSurrogate: - "An export name cannot include a lone surrogate, found '\\u%0'", - ModuleExportUndefined: "Export '%0' is not defined", - MultipleDefaultsInSwitch: "Multiple default clauses", - NewlineAfterThrow: "Illegal newline after throw", - NoCatchOrFinally: "Missing catch or finally clause", - NumberIdentifier: "Identifier directly after number", + "An export name cannot include a lone surrogate, found '\\u%0'.", + ModuleExportUndefined: "Export '%0' is not defined.", + MultipleDefaultsInSwitch: "Multiple default clauses.", + NewlineAfterThrow: "Illegal newline after throw.", + NoCatchOrFinally: "Missing catch or finally clause.", + NumberIdentifier: "Identifier directly after number.", NumericSeparatorInEscapeSequence: - "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences", + "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.", ObsoleteAwaitStar: - "await* has been removed from the async functions proposal. Use Promise.all() instead.", + "'await*' has been removed from the async functions proposal. Use Promise.all() instead.", OptionalChainingNoNew: - "constructors in/after an Optional Chain are not allowed", + "Constructors in/after an Optional Chain are not allowed.", OptionalChainingNoTemplate: - "Tagged Template Literals are not allowed in optionalChain", + "Tagged Template Literals are not allowed in optionalChain.", OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.", - ParamDupe: "Argument name clash", - PatternHasAccessor: "Object pattern can't contain getter or setter", - PatternHasMethod: "Object pattern can't contain methods", + ParamDupe: "Argument name clash.", + PatternHasAccessor: "Object pattern can't contain getter or setter.", + PatternHasMethod: "Object pattern can't contain methods.", PipelineBodyNoArrow: - 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized', + 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.', PipelineBodySequenceExpression: - "Pipeline body may not be a comma-separated sequence expression", + "Pipeline body may not be a comma-separated sequence expression.", PipelineHeadSequenceExpression: - "Pipeline head should not be a comma-separated sequence expression", + "Pipeline head should not be a comma-separated sequence expression.", PipelineTopicUnused: - "Pipeline is in topic style but does not use topic reference", + "Pipeline is in topic style but does not use topic reference.", PrimaryTopicNotAllowed: - "Topic reference was used in a lexical context without topic binding", + "Topic reference was used in a lexical context without topic binding.", PrimaryTopicRequiresSmartPipeline: "Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option.", PrivateInExpectedIn: - "Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`)", - PrivateNameRedeclaration: "Duplicate private name #%0", + "Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).", + PrivateNameRedeclaration: "Duplicate private name #%0.", RecordExpressionBarIncorrectEndSyntaxType: - "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'", + "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", RecordExpressionBarIncorrectStartSyntaxType: - "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'", + "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", RecordExpressionHashIncorrectStartSyntaxType: - "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'", - RecordNoProto: "'__proto__' is not allowed in Record expressions", - RestTrailingComma: "Unexpected trailing comma after rest element", + "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", + RecordNoProto: "'__proto__' is not allowed in Record expressions.", + RestTrailingComma: "Unexpected trailing comma after rest element.", SloppyFunction: - "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement", - StaticPrototype: "Classes may not have static property named prototype", - StrictDelete: "Deleting local variable in strict mode", - StrictEvalArguments: "Assigning to '%0' in strict mode", - StrictEvalArgumentsBinding: "Binding '%0' in strict mode", + "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.", + StaticPrototype: "Classes may not have static property named prototype.", + StrictDelete: "Deleting local variable in strict mode.", + StrictEvalArguments: "Assigning to '%0' in strict mode.", + StrictEvalArgumentsBinding: "Binding '%0' in strict mode.", StrictFunction: - "In strict mode code, functions can only be declared at top level or inside a block", + "In strict mode code, functions can only be declared at top level or inside a block.", StrictNumericEscape: - "The only valid numeric escape in strict mode is '\\0'", - StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode", - StrictWith: "'with' in strict mode", + "The only valid numeric escape in strict mode is '\\0'.", + StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.", + StrictWith: "'with' in strict mode.", SuperNotAllowed: - "super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?", - SuperPrivateField: "Private fields can't be accessed on super", - TrailingDecorator: "Decorators must be attached to a class element", + "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?", + SuperPrivateField: "Private fields can't be accessed on super.", + TrailingDecorator: "Decorators must be attached to a class element.", TupleExpressionBarIncorrectEndSyntaxType: - "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'", + "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", TupleExpressionBarIncorrectStartSyntaxType: - "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'", + "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", TupleExpressionHashIncorrectStartSyntaxType: - "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'", - UnexpectedArgumentPlaceholder: "Unexpected argument placeholder", + "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", + UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.", UnexpectedAwaitAfterPipelineBody: - 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal', - UnexpectedDigitAfterHash: "Unexpected digit after hash token", + 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.', + UnexpectedDigitAfterHash: "Unexpected digit after hash token.", UnexpectedImportExport: - "'import' and 'export' may only appear at the top level", - UnexpectedKeyword: "Unexpected keyword '%0'", + "'import' and 'export' may only appear at the top level.", + UnexpectedKeyword: "Unexpected keyword '%0'.", UnexpectedLeadingDecorator: - "Leading decorators must be attached to a class declaration", + "Leading decorators must be attached to a class declaration.", UnexpectedLexicalDeclaration: - "Lexical declaration cannot appear in a single-statement context", - UnexpectedNewTarget: "new.target can only be used in functions", + "Lexical declaration cannot appear in a single-statement context.", + UnexpectedNewTarget: "`new.target` can only be used in functions.", UnexpectedNumericSeparator: - "A numeric separator is only allowed between two digits", + "A numeric separator is only allowed between two digits.", UnexpectedPrivateField: "Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p).", - UnexpectedReservedWord: "Unexpected reserved word '%0'", - UnexpectedSuper: "super is only allowed in object methods and classes", - UnexpectedToken: "Unexpected token '%0'", + UnexpectedReservedWord: "Unexpected reserved word '%0'.", + UnexpectedSuper: "'super' is only allowed in object methods and classes.", + UnexpectedToken: "Unexpected token '%0'.", UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.", UnsupportedBind: "Binding should be performed on object property.", UnsupportedDecoratorExport: - "A decorated export must export a class declaration", + "A decorated export must export a class declaration.", UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.", - UnsupportedImport: "import can only be used in import() or import.meta", - UnsupportedMetaProperty: "The only valid meta property for %0 is %0.%1", + UnsupportedImport: + "`import` can only be used in `import()` or `import.meta`.", + UnsupportedMetaProperty: "The only valid meta property for %0 is %0.%1.", UnsupportedParameterDecorator: - "Decorators cannot be used to decorate parameters", + "Decorators cannot be used to decorate parameters.", UnsupportedPropertyDecorator: - "Decorators cannot be used to decorate object literal properties", + "Decorators cannot be used to decorate object literal properties.", UnsupportedSuper: - "super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])", - UnterminatedComment: "Unterminated comment", - UnterminatedRegExp: "Unterminated regular expression", - UnterminatedString: "Unterminated string constant", - UnterminatedTemplate: "Unterminated template", - VarRedeclaration: "Identifier '%0' has already been declared", + "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).", + UnterminatedComment: "Unterminated comment.", + UnterminatedRegExp: "Unterminated regular expression.", + UnterminatedString: "Unterminated string constant.", + UnterminatedTemplate: "Unterminated template.", + VarRedeclaration: "Identifier '%0' has already been declared.", YieldBindingIdentifier: - "Can not use 'yield' as identifier inside a generator", - YieldInParameter: "Yield expression is not allowed in formal parameters", + "Can not use 'yield' as identifier inside a generator.", + YieldInParameter: "Yield expression is not allowed in formal parameters.", ZeroDigitNumericSeparator: - "Numeric separator can not be used after leading 0", + "Numeric separator can not be used after leading 0.", }, /* code */ ErrorCodes.SyntaxError, ); diff --git a/packages/babel-parser/src/plugins/flow/index.js b/packages/babel-parser/src/plugins/flow/index.js index b94cc482cb..572613068c 100644 --- a/packages/babel-parser/src/plugins/flow/index.js +++ b/packages/babel-parser/src/plugins/flow/index.js @@ -53,14 +53,14 @@ const FlowErrors = makeErrorTemplates( AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.", AmbiguousDeclareModuleKind: - "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module", - AssignReservedType: "Cannot overwrite reserved type %0", + "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.", + AssignReservedType: "Cannot overwrite reserved type %0.", DeclareClassElement: "The `declare` modifier can only appear on class fields.", DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.", DuplicateDeclareModuleExports: - "Duplicate `declare module.exports` statement", + "Duplicate `declare module.exports` statement.", EnumBooleanMemberNotInitialized: "Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.", EnumDuplicateMemberName: @@ -85,23 +85,24 @@ const FlowErrors = makeErrorTemplates( "String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.", GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.", ImportTypeShorthandOnlyInPureImport: - "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements", + "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.", InexactInsideExact: - "Explicit inexact syntax cannot appear inside an explicit exact object type", + "Explicit inexact syntax cannot appear inside an explicit exact object type.", InexactInsideNonObject: - "Explicit inexact syntax cannot appear in class or interface definitions", - InexactVariance: "Explicit inexact syntax cannot have variance", + "Explicit inexact syntax cannot appear in class or interface definitions.", + InexactVariance: "Explicit inexact syntax cannot have variance.", InvalidNonTypeImportInDeclareModule: - "Imports within a `declare module` body must always be `import type` or `import typeof`", + "Imports within a `declare module` body must always be `import type` or `import typeof`.", MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", NestedDeclareModule: - "`declare module` cannot be used inside another `declare module`", - NestedFlowComment: "Cannot have a flow comment inside another flow comment", + "`declare module` cannot be used inside another `declare module`.", + NestedFlowComment: + "Cannot have a flow comment inside another flow comment.", OptionalBindingPattern: "A binding pattern parameter cannot be optional in an implementation signature.", SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.", - SpreadVariance: "Spread properties cannot have variance", + SpreadVariance: "Spread properties cannot have variance.", ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.", ThisParamBannedInConstructor: @@ -111,29 +112,29 @@ const FlowErrors = makeErrorTemplates( "The `this` parameter must be the first function parameter.", ThisParamNoDefault: "The `this` parameter may not have a default value.", TypeBeforeInitializer: - "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`", + "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeCastInPattern: - "The type cast expression is expected to be wrapped with parenthesis", + "The type cast expression is expected to be wrapped with parenthesis.", UnexpectedExplicitInexactInObject: - "Explicit inexact syntax must appear at the end of an inexact object", - UnexpectedReservedType: "Unexpected reserved type %0", + "Explicit inexact syntax must appear at the end of an inexact object.", + UnexpectedReservedType: "Unexpected reserved type %0.", UnexpectedReservedUnderscore: - "`_` is only allowed as a type argument to call or new", + "`_` is only allowed as a type argument to call or new.", UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.", UnexpectedSpreadType: - "Spread operator cannot appear in class or interface definitions", + "Spread operator cannot appear in class or interface definitions.", UnexpectedSubtractionOperand: - 'Unexpected token, expected "number" or "bigint"', + 'Unexpected token, expected "number" or "bigint".', UnexpectedTokenAfterTypeParameter: - "Expected an arrow function after this type parameter declaration", + "Expected an arrow function after this type parameter declaration.", UnexpectedTypeParameterBeforeAsyncArrowFunction: - "Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`", + "Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.", UnsupportedDeclareExportKind: - "`declare export %0` is not supported. Use `%1` instead", + "`declare export %0` is not supported. Use `%1` instead.", UnsupportedStatementInDeclareModule: - "Only declares and type imports are allowed inside declare module", - UnterminatedFlowComment: "Unterminated flow-comment", + "Only declares and type imports are allowed inside declare module.", + UnterminatedFlowComment: "Unterminated flow-comment.", }, /* code */ ErrorCodes.SyntaxError, ); diff --git a/packages/babel-parser/src/plugins/jsx/index.js b/packages/babel-parser/src/plugins/jsx/index.js index 1ee94e4bd8..45da3e7873 100644 --- a/packages/babel-parser/src/plugins/jsx/index.js +++ b/packages/babel-parser/src/plugins/jsx/index.js @@ -23,14 +23,15 @@ const DECIMAL_NUMBER = /^\d+$/; const JsxErrors = makeErrorTemplates( { AttributeIsEmpty: - "JSX attributes must only be assigned a non-empty expression", - MissingClosingTagElement: "Expected corresponding JSX closing tag for <%0>", - MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>", + "JSX attributes must only be assigned a non-empty expression.", + MissingClosingTagElement: + "Expected corresponding JSX closing tag for <%0>.", + MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.", UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?", UnsupportedJsxValue: - "JSX value should be either an expression or a quoted JSX text", - UnterminatedJsxContent: "Unterminated JSX contents", + "JSX value should be either an expression or a quoted JSX text.", + UnterminatedJsxContent: "Unterminated JSX contents.", UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?", }, diff --git a/packages/babel-parser/src/plugins/placeholders.js b/packages/babel-parser/src/plugins/placeholders.js index 82f2acf974..fc03e77279 100644 --- a/packages/babel-parser/src/plugins/placeholders.js +++ b/packages/babel-parser/src/plugins/placeholders.js @@ -50,7 +50,7 @@ type MaybePlaceholder = NodeOf; // | Placeholder const PlaceHolderErrors = makeErrorTemplates( { - ClassNameIsRequired: "A class name is required", + ClassNameIsRequired: "A class name is required.", }, /* code */ ErrorCodes.SyntaxError, ); diff --git a/packages/babel-parser/src/plugins/typescript/index.js b/packages/babel-parser/src/plugins/typescript/index.js index b5eaef411b..4e684b6da0 100644 --- a/packages/babel-parser/src/plugins/typescript/index.js +++ b/packages/babel-parser/src/plugins/typescript/index.js @@ -70,8 +70,9 @@ const TSErrors = makeErrorTemplates( { AbstractMethodHasImplementation: "Method '%0' cannot have an implementation because it is marked abstract.", - ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier", - ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier", + ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", + ClassMethodHasReadonly: + "Class methods cannot have the 'readonly' modifier.", ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", DeclareAccessor: "'declare' is not allowed in %0ters.", @@ -80,24 +81,24 @@ const TSErrors = makeErrorTemplates( DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", DuplicateAccessibilityModifier: "Accessibility modifier already seen.", - DuplicateModifier: "Duplicate modifier: '%0'", + DuplicateModifier: "Duplicate modifier: '%0'.", EmptyHeritageClauseType: "'%0' list cannot be empty.", EmptyTypeArguments: "Type argument list cannot be empty.", EmptyTypeParameters: "Type parameter list cannot be empty.", ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", - ImportAliasHasImportType: "An import alias can not use 'import type'", + ImportAliasHasImportType: "An import alias can not use 'import type'.", IncompatibleModifiers: "'%0' modifier cannot be used with '%1' modifier.", IndexSignatureHasAbstract: - "Index signatures cannot have the 'abstract' modifier", + "Index signatures cannot have the 'abstract' modifier.", IndexSignatureHasAccessibility: - "Index signatures cannot have an accessibility modifier ('%0')", + "Index signatures cannot have an accessibility modifier ('%0').", IndexSignatureHasDeclare: - "Index signatures cannot have the 'declare' modifier", + "Index signatures cannot have the 'declare' modifier.", IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", IndexSignatureHasStatic: - "Index signatures cannot have the 'static' modifier", + "Index signatures cannot have the 'static' modifier.", InvalidModifierOnTypeMember: "'%0' modifier cannot appear on a type member.", InvalidModifiersOrder: "'%0' modifier must precede '%1' modifier.", @@ -118,11 +119,11 @@ const TSErrors = makeErrorTemplates( PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", PrivateElementHasAccessibility: - "Private elements cannot have an accessibility modifier ('%0')", + "Private elements cannot have an accessibility modifier ('%0').", ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", TypeAnnotationAfterAssign: - "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`", + "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", UnexpectedParameterModifier: @@ -133,11 +134,11 @@ const TSErrors = makeErrorTemplates( UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: - "Argument in a type import must be a string literal", + "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: - "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0", + "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0.", }, /* code */ ErrorCodes.SyntaxError, ); diff --git a/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/7/output.json b/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/7/output.json index bed17cab39..02bdc2650e 100644 --- a/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/7/output.json +++ b/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/7/output.json @@ -1,66 +1,21 @@ { "type": "FunctionExpression", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, + "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "id": null, "generator": false, "async": false, "params": [ { "type": "AssignmentPattern", - "start": 10, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 23 - } - }, + "start":10,"end":23,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":23}}, "left": { "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - }, - "identifierName": "a" - }, + "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, "name": "a" }, "right": { "type": "StringLiteral", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, + "start":14,"end":23,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":23}}, "extra": { "rawValue": "default", "raw": "\"default\"" @@ -71,58 +26,25 @@ ], "body": { "type": "BlockStatement", - "start": 25, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 40 - } - }, + "start":25,"end":40,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":40}}, "body": [], "directives": [ { "type": "Directive", - "start": 26, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 39 - } - }, + "start":26,"end":39,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":39}}, "value": { "type": "DirectiveLiteral", - "start": 26, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "value": "use strict", + "start":26,"end":38,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":38}}, "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] }, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ] } \ No newline at end of file diff --git a/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/8/output.json b/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/8/output.json index df12702dd8..3967ef0601 100644 --- a/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/8/output.json +++ b/packages/babel-parser/test/expressions/is-expression-babel-parser/fail/8/output.json @@ -1,20 +1,8 @@ { "type": "Identifier", - "start": 1, - "end": 7, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 6 - }, - "identifierName": "public" - }, + "start":1,"end":7,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":6},"identifierName":"public"}, "name": "public", "errors": [ - "SyntaxError: Unexpected reserved word 'public' (2:0)" + "SyntaxError: Unexpected reserved word 'public'. (2:0)" ] } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/categorized/for-missing-semicolons/output.json b/packages/babel-parser/test/fixtures/core/categorized/for-missing-semicolons/output.json index ed05439af7..ed0e627ded 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/for-missing-semicolons/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/for-missing-semicolons/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: Missing semicolon (2:11)", - "SyntaxError: Missing semicolon (3:7)" + "SyntaxError: Missing semicolon. (2:11)", + "SyntaxError: Missing semicolon. (3:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-1/output.json b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-1/output.json index 64125f64db..b7ad657038 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-1/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)" ], "program": { "type": "Program", @@ -20,6 +20,10 @@ "left": { "type": "AssignmentPattern", "start":1,"end":6,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":6}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "left": { "type": "Identifier", "start":1,"end":2,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":2},"identifierName":"a"}, @@ -30,10 +34,6 @@ "start":5,"end":6,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":6}}, "value": 1, "raw": "1" - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "right": { diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-2/output.json b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-2/output.json index 340a0dcdbc..513534989f 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-2/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:2)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:2)" ], "program": { "type": "Program", @@ -24,6 +24,10 @@ { "type": "AssignmentPattern", "start":2,"end":7,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":7}}, + "extra": { + "parenthesized": true, + "parenStart": 1 + }, "left": { "type": "Identifier", "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3},"identifierName":"a"}, @@ -34,10 +38,6 @@ "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7}}, "value": 1, "raw": "1" - }, - "extra": { - "parenthesized": true, - "parenStart": 1 } } ] diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-3/output.json b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-3/output.json index 74aeb35dac..3e16332777 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-3/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:2)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:2)" ], "program": { "type": "Program", @@ -24,6 +24,10 @@ { "type": "ObjectPattern", "start":2,"end":15,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":15}}, + "extra": { + "parenthesized": true, + "parenStart": 1 + }, "properties": [ { "type": "Property", @@ -59,11 +63,7 @@ }, "kind": "init" } - ], - "extra": { - "parenthesized": true, - "parenStart": 1 - } + ] } ] }, diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-4/output.json b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-4/output.json index 7b58295352..786558b49e 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-4/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:7)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:7)" ], "program": { "type": "Program", @@ -43,6 +43,10 @@ { "type": "ArrayPattern", "start":7,"end":14,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":14}}, + "extra": { + "parenthesized": true, + "parenStart": 6 + }, "elements": [ { "type": "AssignmentPattern", @@ -59,11 +63,7 @@ "raw": "1" } } - ], - "extra": { - "parenthesized": true, - "parenStart": 6 - } + ] } ] }, diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-5/output.json b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-5/output.json index 22e32af6eb..4c6ed5aea6 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-5/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:2)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:2)" ], "program": { "type": "Program", @@ -24,17 +24,17 @@ { "type": "ArrayPattern", "start":2,"end":5,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":5}}, + "extra": { + "parenthesized": true, + "parenStart": 1 + }, "elements": [ { "type": "Identifier", "start":3,"end":4,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":4},"identifierName":"x"}, "name": "x" } - ], - "extra": { - "parenthesized": true, - "parenStart": 1 - } + ] } ] }, diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-inside-loop/output.json b/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-inside-loop/output.json index c2f51bff4f..5ecd04a930 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-inside-loop/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-inside-loop/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement (1:10)" + "SyntaxError: In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-labeled-inside-loop/output.json b/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-labeled-inside-loop/output.json index f39f3fcea7..a87bb06aaf 100644 --- a/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-labeled-inside-loop/output.json +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-labeled-inside-loop/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement (1:20)" + "SyntaxError: In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-2/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-2/output.json index a71d68fda7..6fecbdcede 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-2/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:6)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-3/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-3/output.json index 27220d222a..4c4ed6a478 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-3/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-4/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-4/output.json index 7f0500a929..8c0d76ffc8 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-4/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-5/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-5/output.json index bec89d0678..a56d7b9758 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-5/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:0)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-6/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-6/output.json index 49fc67ea3f..422d9c1934 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-6/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-6/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:0)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern/output.json index 3d1d927441..a88afdae43 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:0)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:0)" ], "program": { "type": "Program", @@ -27,6 +27,9 @@ { "type": "ObjectProperty", "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -39,9 +42,6 @@ "type": "Identifier", "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3},"identifierName":"x"}, "name": "x" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-left-hand-side/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-left-hand-side/output.json index 342a51f0b1..b2ddd23327 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-left-hand-side/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-parenthesized-left-hand-side/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Invalid left-hand side in parenthesized expression (1:1)" + "SyntaxError: Invalid left-hand side in parenthesized expression. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-pattern-in-rest-binding/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-pattern-in-rest-binding/output.json index 0bf2bd22b4..4ec692aec6 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-pattern-in-rest-binding/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/invalid-pattern-in-rest-binding/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:5)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/valid-parenthesized-assignment-array-pattern-3/output.json b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/valid-parenthesized-assignment-array-pattern-3/output.json index a655ee4c1f..87f9c92ffe 100644 --- a/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/valid-parenthesized-assignment-array-pattern-3/output.json +++ b/packages/babel-parser/test/fixtures/core/create-parenthesized-expressions/valid-parenthesized-assignment-array-pattern-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/escape-keyword/invalid/output.json b/packages/babel-parser/test/fixtures/core/escape-keyword/invalid/output.json index 20ba00fd6d..f398774dcc 100644 --- a/packages/babel-parser/test/fixtures/core/escape-keyword/invalid/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-keyword/invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}}, "errors": [ - "SyntaxError: Unexpected keyword 'break' (2:2)" + "SyntaxError: Unexpected keyword 'break'. (2:2)" ], "program": { "type": "Program", @@ -29,6 +29,9 @@ { "type": "ObjectProperty", "start":12,"end":22,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":12}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -41,9 +44,6 @@ "type": "Identifier", "start":12,"end":22,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":12},"identifierName":"break"}, "name": "break" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive-function/output.json b/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive-function/output.json index 4450ba694b..7d3eaf581e 100644 --- a/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive-function/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive-function/output.json @@ -2,12 +2,12 @@ "type": "File", "start":0,"end":182,"loc":{"start":{"line":1,"column":0},"end":{"line":21,"column":1}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (2:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (7:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (8:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (14:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (19:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (20:4)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (2:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (7:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (8:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (14:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (19:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (20:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive/output.json b/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive/output.json index 27f42a3a21..1d7dc7c699 100644 --- a/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive/output.json @@ -2,16 +2,16 @@ "type": "File", "start":0,"end":87,"loc":{"start":{"line":1,"column":0},"end":{"line":11,"column":22}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:2)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:10)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:18)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (3:2)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (4:2)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (8:2)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (9:2)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (11:2)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (11:10)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (11:18)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:2)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:10)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:18)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (3:2)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (4:2)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (8:2)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (9:2)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (11:2)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (11:10)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (11:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine-before-use-strict/output.json b/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine-before-use-strict/output.json index 2390fa033b..4f5808019d 100644 --- a/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine-before-use-strict/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine-before-use-strict/output.json @@ -2,10 +2,10 @@ "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (2:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (2:9)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (4:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (4:9)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (2:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (2:9)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (4:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (4:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine/output.json b/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine/output.json index fad92eec30..57c9d57144 100644 --- a/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-string/non-octal-eight-and-nine/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (4:4)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (4:9)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (4:4)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (4:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-directive/output.json b/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-directive/output.json index 2c6c0e03d2..6a534cbb80 100644 --- a/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-directive/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-directive/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":76,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":76}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:69)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:69)" ], "program": { "type": "Program", @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":52,"end":71,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":71}}, - "value": "octal directive\\1", "extra": { "raw": "\"octal directive\\1\"", "rawValue": "octal directive\\1" - } + }, + "value": "octal directive\\1" } } ] @@ -65,11 +65,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-property-name/output.json b/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-property-name/output.json index 0491546b1a..2be4810dff 100644 --- a/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-property-name/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-property-name/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:38)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:38)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":34,"end":46,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":46}}, + "extra": { + "parenthesized": true, + "parenStart": 33 + }, "properties": [ { "type": "ObjectProperty", @@ -57,11 +61,7 @@ "value": 42 } } - ], - "extra": { - "parenthesized": true, - "parenStart": 33 - } + ] } } ], @@ -72,11 +72,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/escape-template/non-octal-eight/output.json b/packages/babel-parser/test/fixtures/core/escape-template/non-octal-eight/output.json index 97c5ce5eb3..3f6fb9cf33 100644 --- a/packages/babel-parser/test/fixtures/core/escape-template/non-octal-eight/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-template/non-octal-eight/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/escape-template/non-octal-nine/output.json b/packages/babel-parser/test/fixtures/core/escape-template/non-octal-nine/output.json index 98905e40ab..665a9911c2 100644 --- a/packages/babel-parser/test/fixtures/core/escape-template/non-octal-nine/output.json +++ b/packages/babel-parser/test/fixtures/core/escape-template/non-octal-nine/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict-function/output.json b/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict-function/output.json index 86f191f936..fcc351cc30 100644 --- a/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict-function/output.json +++ b/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict-function/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":84,"loc":{"start":{"line":1,"column":0},"end":{"line":10,"column":1}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (3:2)", - "SyntaxError: Legacy octal literals are not allowed in strict mode (8:2)", - "SyntaxError: Legacy octal literals are not allowed in strict mode (9:2)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (3:2)", + "SyntaxError: Legacy octal literals are not allowed in strict mode. (8:2)", + "SyntaxError: Legacy octal literals are not allowed in strict mode. (9:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict/output.json b/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict/output.json index e184e7d7f8..081d0f0262 100644 --- a/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict/output.json +++ b/packages/babel-parser/test/fixtures/core/legacy-octal/legacy-octal-after-use-strict/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:14)", - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:18)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:14)", + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/object/invalid-setter/output.json b/packages/babel-parser/test/fixtures/core/object/invalid-setter/output.json index 67751ab07b..249b267a31 100644 --- a/packages/babel-parser/test/fixtures/core/object/invalid-setter/output.json +++ b/packages/babel-parser/test/fixtures/core/object/invalid-setter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: setter must have exactly one formal parameter (1:3)" + "SyntaxError: A 'set' accesor must have exactly one formal parameter. (1:3)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":14,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":14}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectMethod", @@ -39,11 +43,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/core/regression/non-octal-float-strict-mode/output.json b/packages/babel-parser/test/fixtures/core/regression/non-octal-float-strict-mode/output.json index 7cc466fa1d..fb2337c9a4 100644 --- a/packages/babel-parser/test/fixtures/core/regression/non-octal-float-strict-mode/output.json +++ b/packages/babel-parser/test/fixtures/core/regression/non-octal-float-strict-mode/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:0)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/regression/octal-float-fail/output.json b/packages/babel-parser/test/fixtures/core/regression/octal-float-fail/output.json index 34bb9d3431..287a2772ed 100644 --- a/packages/babel-parser/test/fixtures/core/regression/octal-float-fail/output.json +++ b/packages/babel-parser/test/fixtures/core/regression/octal-float-fail/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Missing semicolon (1:2)" + "SyntaxError: Missing semicolon. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex-nested/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex-nested/output.json index bf01e24b49..63d4f2f319 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex-nested/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex-nested/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (4:6)" + "SyntaxError: Identifier 'foo' has already been declared. (4:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex/output.json index dd515037db..c4a23d855e 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-lex/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":12}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (3:4)" + "SyntaxError: Identifier 'foo' has already been declared. (3:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var-nested/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var-nested/output.json index 26e7aee9b7..9ac124f737 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var-nested/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var-nested/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (4:6)" + "SyntaxError: Identifier 'foo' has already been declared. (4:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var/output.json index 9d5f366077..2cfe77db8d 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":12}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (3:4)" + "SyntaxError: Identifier 'foo' has already been declared. (3:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-arr-destr/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-arr-destr/output.json index 294f5fbc9c..0103e2c922 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-arr-destr/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-arr-destr/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:15)" + "SyntaxError: Identifier 'foo' has already been declared. (2:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-dbl-let/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-dbl-let/output.json index 532647600b..da4e7a2488 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-dbl-let/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-dbl-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (1:35)" + "SyntaxError: Identifier 'foo' has already been declared. (1:35)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-func/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-func/output.json index 680f522586..05f8573c0b 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-func/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-func/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (3:11)" + "SyntaxError: Identifier 'foo' has already been declared. (3:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-let/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-let/output.json index b1c8e29872..56f4696dae 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-let/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (3:6)" + "SyntaxError: Identifier 'foo' has already been declared. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-obj-destr/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-obj-destr/output.json index 01f965585c..dc0e8dc699 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-obj-destr/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-obj-destr/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:28)" + "SyntaxError: Identifier 'foo' has already been declared. (2:28)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-arr-destr/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-arr-destr/output.json index 8f5d300470..d05d9ee66e 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-arr-destr/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-arr-destr/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (3:6)" + "SyntaxError: Identifier 'foo' has already been declared. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-obj-destr/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-obj-destr/output.json index df5372c2f5..5cb36b70a8 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-obj-destr/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-var-obj-destr/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (3:6)" + "SyntaxError: Identifier 'foo' has already been declared. (3:6)" ], "program": { "type": "Program", @@ -29,6 +29,9 @@ { "type": "ObjectProperty", "start":17,"end":20,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":14}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -41,9 +44,6 @@ "type": "Identifier", "start":17,"end":20,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":14},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-class/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-class/output.json index 9668ddd49b..6cad72d0cf 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-class/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":13}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:6)" + "SyntaxError: Identifier 'foo' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-const/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-const/output.json index fcb6f91989..8be4d73a73 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-const/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-const/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:6)" + "SyntaxError: Identifier 'foo' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-func/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-func/output.json index 251519a88b..088a67b404 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-func/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-func/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":19}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:9)" + "SyntaxError: Identifier 'foo' has already been declared. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-let/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-let/output.json index 40ac7749d8..20c014a634 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-let/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:4)" + "SyntaxError: Identifier 'foo' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-var/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-var/output.json index 7e9448c87d..d7b2a329e4 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-var/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-class-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":8}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:4)" + "SyntaxError: Identifier 'foo' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-const-const/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-const-const/output.json index c35c68c759..bca583bff3 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-const-const/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-const-const/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (1:13)" + "SyntaxError: Identifier 'foo' has already been declared. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-gen/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-gen/output.json index ae3ed9341b..bb6a26c021 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-gen/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-gen/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Identifier 'f' has already been declared (1:28)" + "SyntaxError: Identifier 'f' has already been declared. (1:28)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module-sloppy/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module-sloppy/output.json index 71081aa316..03257c4c43 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module-sloppy/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module-sloppy/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (1:29)" + "SyntaxError: Identifier 'foo' has already been declared. (1:29)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module/output.json index f4d8dbbf89..ff3043e3aa 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-module/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":17}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:9)" + "SyntaxError: Identifier 'foo' has already been declared. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-var-sloppy/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-var-sloppy/output.json index 7840aedc90..04f23e66bc 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-var-sloppy/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-var-sloppy/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (3:6)" + "SyntaxError: Identifier 'foo' has already been declared. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-gen-func/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-gen-func/output.json index 209a1e02c0..496583e47b 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-gen-func/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-gen-func/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Identifier 'f' has already been declared (1:28)" + "SyntaxError: Identifier 'f' has already been declared. (1:28)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-let-let/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-let-let/output.json index 942dccb6e6..12d2c84940 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-let-let/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-let-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (1:9)" + "SyntaxError: Identifier 'foo' has already been declared. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-nested-let-var/output.json b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-nested-let-var/output.json index 047bfbf77f..0c3762e742 100644 --- a/packages/babel-parser/test/fixtures/core/scope/dupl-bind-nested-let-var/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/dupl-bind-nested-let-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Identifier 'a' has already been declared (3:8)" + "SyntaxError: Identifier 'a' has already been declared. (3:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/for-var/output.json b/packages/babel-parser/test/fixtures/core/scope/for-var/output.json index eb373fff29..9e701a8c55 100644 --- a/packages/babel-parser/test/fixtures/core/scope/for-var/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/for-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Identifier 'i' has already been declared (2:8)" + "SyntaxError: Identifier 'i' has already been declared. (2:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/undecl-export-as-default/output.json b/packages/babel-parser/test/fixtures/core/scope/undecl-export-as-default/output.json index 40f3335e7e..aae21d5578 100644 --- a/packages/babel-parser/test/fixtures/core/scope/undecl-export-as-default/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/undecl-export-as-default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Export 'encrypt' is not defined (1:9)" + "SyntaxError: Export 'encrypt' is not defined. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/undecl-export-as/output.json b/packages/babel-parser/test/fixtures/core/scope/undecl-export-as/output.json index 120ad6bc70..5a87b71d43 100644 --- a/packages/babel-parser/test/fixtures/core/scope/undecl-export-as/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/undecl-export-as/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":21}}, "errors": [ - "SyntaxError: Export 'encrypt' is not defined (1:9)" + "SyntaxError: Export 'encrypt' is not defined. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/undecl-export-block/output.json b/packages/babel-parser/test/fixtures/core/scope/undecl-export-block/output.json index cedcbba92a..dcc4930f99 100644 --- a/packages/babel-parser/test/fixtures/core/scope/undecl-export-block/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/undecl-export-block/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":18}}, "errors": [ - "SyntaxError: Export 'encrypt' is not defined (4:9)" + "SyntaxError: Export 'encrypt' is not defined. (4:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin-as/output.json b/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin-as/output.json index a40f509053..3406d58c00 100644 --- a/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin-as/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin-as/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Export 'Object' is not defined (1:9)" + "SyntaxError: Export 'Object' is not defined. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin/output.json b/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin/output.json index faad719a5d..5d03881578 100644 --- a/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/undecl-export-builtin/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Export 'Object' is not defined (1:9)" + "SyntaxError: Export 'Object' is not defined. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/undecl-export-if/output.json b/packages/babel-parser/test/fixtures/core/scope/undecl-export-if/output.json index 783a60a237..3fd90ba2c8 100644 --- a/packages/babel-parser/test/fixtures/core/scope/undecl-export-if/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/undecl-export-if/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":31}}, "errors": [ - "SyntaxError: In strict mode code, functions can only be declared at top level or inside a block (2:10)", - "SyntaxError: Export 'encrypt' is not defined (1:9)" + "SyntaxError: In strict mode code, functions can only be declared at top level or inside a block. (2:10)", + "SyntaxError: Export 'encrypt' is not defined. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/scope/undecl-export/output.json b/packages/babel-parser/test/fixtures/core/scope/undecl-export/output.json index d83b949cce..5bde1d321a 100644 --- a/packages/babel-parser/test/fixtures/core/scope/undecl-export/output.json +++ b/packages/babel-parser/test/fixtures/core/scope/undecl-export/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Export 'encrypt' is not defined (1:9)" + "SyntaxError: Export 'encrypt' is not defined. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/108/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/108/output.json index 287f2a0533..2167c41e60 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/108/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/108/output.json @@ -2,11 +2,11 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Invalid regular expression flag (1:17)", - "SyntaxError: Invalid regular expression flag (1:19)", - "SyntaxError: Invalid regular expression flag (1:20)", - "SyntaxError: Invalid regular expression flag (1:21)", - "SyntaxError: Invalid regular expression flag (1:22)" + "SyntaxError: Invalid regular expression flag. (1:17)", + "SyntaxError: Invalid regular expression flag. (1:19)", + "SyntaxError: Invalid regular expression flag. (1:20)", + "SyntaxError: Invalid regular expression flag. (1:21)", + "SyntaxError: Invalid regular expression flag. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/347/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/347/options.json index ee18527964..8ca0a88b10 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/347/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/347/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:2)" -} + "throws": "Identifier directly after number. (1:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/348/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/348/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/348/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/348/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/349/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/349/output.json index 6afcaf3f50..8aee6eeea3 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/349/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/349/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Floating-point numbers require a valid exponent after the 'e' (1:0)" + "SyntaxError: Floating-point numbers require a valid exponent after the 'e'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/350/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/350/output.json index 3402747209..d8e6109449 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/350/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/350/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Floating-point numbers require a valid exponent after the 'e' (1:0)" + "SyntaxError: Floating-point numbers require a valid exponent after the 'e'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/351/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/351/output.json index 666fcca212..77750f5401 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/351/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/351/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Floating-point numbers require a valid exponent after the 'e' (1:0)" + "SyntaxError: Floating-point numbers require a valid exponent after the 'e'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/352/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/352/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/352/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/352/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/353/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/353/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/353/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/353/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/354/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/354/output.json index 9a1a7ea608..f67a53a3af 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/354/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/354/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 16 (1:2)" + "SyntaxError: Expected number in radix 16. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/357/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/357/options.json index ee18527964..8ca0a88b10 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/357/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/357/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:2)" -} + "throws": "Identifier directly after number. (1:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/358/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/358/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/358/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/358/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/359/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/359/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/359/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/359/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/360/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/360/options.json index d732a16309..d55f05b989 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/360/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/360/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:0)" -} + "throws": "Unterminated string constant. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/361/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/361/output.json index 5dd7b5d3fc..5a42dc4011 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/361/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/361/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:2)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/362/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/362/output.json index d9a89994f0..c6a8c44431 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/362/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/362/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:1)" + "SyntaxError: Invalid Unicode escape. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/363/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/363/output.json index 32180fcde9..ab96020c3d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/363/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/363/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:1)" + "SyntaxError: Invalid Unicode escape. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/364/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/364/options.json index 66fb1cd63b..150f288739 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/364/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/364/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:1)" -} + "throws": "Unterminated regular expression. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/365/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/365/options.json index 66fb1cd63b..150f288739 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/365/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/365/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:1)" -} + "throws": "Unterminated regular expression. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/366/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/366/output.json index d42d61f8a5..8d5a269745 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/366/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/366/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Invalid regular expression flag (1:16)", - "SyntaxError: Invalid regular expression flag (1:18)" + "SyntaxError: Invalid regular expression flag. (1:16)", + "SyntaxError: Invalid regular expression flag. (1:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/367/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/367/output.json index d4d2cf5dfe..615e2fb600 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/367/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/367/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/368/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/368/output.json index edc3258403..fdcc499e4a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/368/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/368/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/369/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/369/output.json index 46112c6c88..66b1f9ca63 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/369/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/369/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)", - "SyntaxError: Invalid left-hand side in assignment expression (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)", + "SyntaxError: Invalid left-hand side in assignment expression. (1:1)" ], "program": { "type": "Program", @@ -21,6 +21,10 @@ "left": { "type": "BinaryExpression", "start":1,"end":6,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":6}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "left": { "type": "NumericLiteral", "start":1,"end":2,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":2}}, @@ -39,10 +43,6 @@ "raw": "1" }, "value": 1 - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "right": { diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/370/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/370/output.json index 89b9c579fa..62473b4541 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/370/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/370/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in postfix operation (1:0)" + "SyntaxError: Invalid left-hand side in postfix operation. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/371/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/371/output.json index b0387fd4ff..d05ce3bd54 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/371/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/371/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in postfix operation (1:0)" + "SyntaxError: Invalid left-hand side in postfix operation. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/372/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/372/output.json index e86e86ca22..450e585960 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/372/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/372/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in prefix operation (1:2)" + "SyntaxError: Invalid left-hand side in prefix operation. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/373/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/373/output.json index de49f7815b..6e320d221c 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/373/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/373/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in prefix operation (1:2)" + "SyntaxError: Invalid left-hand side in prefix operation. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/374/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/374/output.json index 609aed8d62..ce1ff12dc0 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/374/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/374/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:5)", - "SyntaxError: Invalid left-hand side in for-in statement (1:5)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:5)", + "SyntaxError: Invalid left-hand side in for-in statement. (1:5)" ], "program": { "type": "Program", @@ -17,6 +17,10 @@ "left": { "type": "BinaryExpression", "start":5,"end":10,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":10}}, + "extra": { + "parenthesized": true, + "parenStart": 4 + }, "left": { "type": "NumericLiteral", "start":5,"end":6,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":6}}, @@ -35,10 +39,6 @@ "raw": "1" }, "value": 1 - }, - "extra": { - "parenthesized": true, - "parenStart": 4 } }, "right": { diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/380/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/380/options.json index 2fd762cd6a..3f39a2ac3b 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/380/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/380/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:9)" -} + "throws": "Unterminated regular expression. (1:9)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/381/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/381/options.json index 9d0cd9237f..cceacaba73 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/381/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/381/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:8)" -} + "throws": "Unterminated string constant. (1:8)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/382/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/382/output.json index 71a10a5324..4bb04dbcff 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/382/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/382/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Unexpected keyword 'if' (1:4)" + "SyntaxError: Unexpected keyword 'if'. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/383/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/383/output.json index 62e9955107..1891a2eec0 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/383/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/383/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/384/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/384/output.json index ba27c1c609..6ba5a516e0 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/384/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/384/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/388/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/388/output.json index ec9f3f126a..f9e98bbc6c 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/388/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/388/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Missing semicolon (1:5)" + "SyntaxError: Missing semicolon. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/389/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/389/output.json index eb17665ab7..b0e9ab8b21 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/389/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/389/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Missing semicolon (1:5)" + "SyntaxError: Missing semicolon. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/396/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/396/options.json index 2e1b1cc3aa..8c60527068 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/396/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/396/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:18)" -} + "throws": "Rest element must be last element. (1:18)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/397/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/397/output.json index e005c14c8e..57f9d8906f 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/397/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/397/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Unexpected keyword 'if' (1:11)" + "SyntaxError: Unexpected keyword 'if'. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/398/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/398/output.json index 6ec5cbae6e..251658dd9c 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/398/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/398/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Unexpected keyword 'true' (1:11)" + "SyntaxError: Unexpected keyword 'true'. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/399/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/399/output.json index 52f3a55384..402230c098 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/399/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/399/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Unexpected keyword 'false' (1:11)" + "SyntaxError: Unexpected keyword 'false'. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/400/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/400/output.json index 501517e632..969cc7e9c9 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/400/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/400/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Unexpected keyword 'null' (1:11)" + "SyntaxError: Unexpected keyword 'null'. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/401/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/401/output.json index 9ac27929ac..0b17df8ba8 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/401/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/401/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected keyword 'null' (1:9)" + "SyntaxError: Unexpected keyword 'null'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/402/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/402/output.json index 4d6a82553f..75d91eb724 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/402/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/402/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected keyword 'true' (1:9)" + "SyntaxError: Unexpected keyword 'true'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/403/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/403/output.json index 9939c11439..4d3856142a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/403/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/403/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Unexpected keyword 'false' (1:9)" + "SyntaxError: Unexpected keyword 'false'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/404/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/404/output.json index 18e0bcd2fc..88f9207edd 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/404/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/404/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: Unexpected keyword 'if' (1:9)" + "SyntaxError: Unexpected keyword 'if'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/405/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/405/output.json index 9f46d8a53e..f26fb79a0e 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/405/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/405/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Missing semicolon (1:1)" + "SyntaxError: Missing semicolon. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/408/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/408/options.json index 9f6ece53f3..36c0b439d6 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/408/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/408/options.json @@ -1,3 +1,3 @@ { - "throws": "A class name is required (1:7)" + "throws": "A class name is required. (1:7)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/409/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/409/output.json index 8ce94b9605..c518595a41 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/409/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/409/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Unsyntactic break (1:0)" + "SyntaxError: Unsyntactic break. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/411/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/411/output.json index 6d89822f15..811d70b316 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/411/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/411/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:0)" + "SyntaxError: Unsyntactic continue. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/417/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/417/output.json index d3af5238b3..2d4dd7e24b 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/417/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/417/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Invalid left-hand side in for-in statement (1:5)" + "SyntaxError: Invalid left-hand side in for-in statement. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/418/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/418/output.json index a68f97021f..8344401eaa 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/418/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/418/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid left-hand side in for-in statement (1:5)" + "SyntaxError: Invalid left-hand side in for-in statement. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/425/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/425/output.json index a0bb1f5c08..f9808a0f84 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/425/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/425/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Missing catch or finally clause (1:0)" + "SyntaxError: Missing catch or finally clause. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/426/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/426/options.json index 5eb5666731..764361b752 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/426/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/426/options.json @@ -1,3 +1,3 @@ { - "throws": "Unexpected character '‿' (1:0)" -} + "throws": "Unexpected character '‿'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/427/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/427/output.json index 322359217c..2588843bac 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/427/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/427/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Multiple default clauses (1:22)" + "SyntaxError: Multiple default clauses. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/429/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/429/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/429/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/429/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/430/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/430/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/430/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/430/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/431/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/431/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/431/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/431/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/432/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/432/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/432/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/432/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/433/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/433/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/433/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/433/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/434/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/434/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/434/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/434/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/441/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/441/options.json index 66fb1cd63b..150f288739 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/441/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/441/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:1)" -} + "throws": "Unterminated regular expression. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/446/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/446/output.json index f0be819b2d..9bdc5aca19 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/446/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/446/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:1)", - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:2)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:1)", + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/447/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/447/output.json index 6c34e22a00..882d234cfa 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/447/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/447/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:0)" + "SyntaxError: Invalid Unicode escape. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/448/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/448/output.json index cc7b3b44d6..de59dbe06c 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/448/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/448/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:1)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/449/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/449/output.json index 3af7d55ae1..ab518a1a3a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/449/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/449/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:0)" + "SyntaxError: Invalid Unicode escape. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/450/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/450/options.json index 94eb7376be..098a6b65c6 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/450/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/450/options.json @@ -1,3 +1,3 @@ { - "throws": "Unexpected character '‌' (1:0)" -} + "throws": "Unexpected character '‌'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/451/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/451/options.json index c67d8bb8a9..f30bd6f5e9 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/451/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/451/options.json @@ -1,3 +1,3 @@ { - "throws": "Unexpected character '‍' (1:0)" -} + "throws": "Unexpected character '‍'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/452/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/452/options.json index d732a16309..d55f05b989 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/452/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/452/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:0)" -} + "throws": "Unterminated string constant. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/453/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/453/options.json index d732a16309..d55f05b989 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/453/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/453/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:0)" -} + "throws": "Unterminated string constant. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/454/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/454/output.json index 5875cb58be..0663176265 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/454/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/454/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: 'return' outside of function (1:0)" + "SyntaxError: 'return' outside of function. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/455/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/455/output.json index 8ce94b9605..c518595a41 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/455/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/455/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Unsyntactic break (1:0)" + "SyntaxError: Unsyntactic break. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/456/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/456/output.json index 6d89822f15..811d70b316 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/456/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/456/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:0)" + "SyntaxError: Unsyntactic continue. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/457/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/457/output.json index 37451db0ed..195fb76444 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/457/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/457/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:22)" + "SyntaxError: Unsyntactic continue. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/459/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/459/output.json index ae9cb401dd..46f73d4c4e 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/459/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/459/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Unsyntactic break (1:15)" + "SyntaxError: Unsyntactic break. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/460/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/460/output.json index 39c5663443..e9e33c6523 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/460/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/460/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:15)" + "SyntaxError: Unsyntactic continue. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/461/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/461/output.json index 3939133b3b..fa61b279c3 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/461/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/461/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}}, "errors": [ - "SyntaxError: Unsyntactic break (1:33)" + "SyntaxError: Unsyntactic break. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":43,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":43}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -50,10 +54,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/462/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/462/output.json index d65c7f7da9..4390beac20 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/462/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/462/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:33)" + "SyntaxError: Unsyntactic continue. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":46,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":46}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -50,10 +54,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/463/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/463/output.json index 336add4fe3..4a682d6c85 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/463/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/463/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":45}}, "errors": [ - "SyntaxError: Unsyntactic break (1:33)" + "SyntaxError: Unsyntactic break. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":41,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":41}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -46,10 +50,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/464/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/464/output.json index ac86039c65..9321eacbd5 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/464/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/464/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:33)" + "SyntaxError: Unsyntactic continue. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":44,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":44}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -46,10 +50,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/465/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/465/output.json index 815a430cb2..b16e8da6eb 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/465/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/465/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Label 'x' is already declared (1:18)" + "SyntaxError: Label 'x' is already declared. (1:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/466/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/466/output.json index 392c525509..4eac4215e0 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/466/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/466/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}}, "errors": [ - "SyntaxError: Deleting local variable in strict mode (1:29)" + "SyntaxError: Deleting local variable in strict mode. (1:29)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "CallExpression", "start":1,"end":42,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":42}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "callee": { "type": "FunctionExpression", "start":1,"end":40,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":40}}, @@ -50,21 +54,17 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + "arguments": [] } } ], diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/467/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/467/output.json index 62cf67d34e..224e3d31eb 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/467/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/467/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}}, "errors": [ - "SyntaxError: 'with' in strict mode (1:29)" + "SyntaxError: 'with' in strict mode. (1:29)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "CallExpression", "start":1,"end":42,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":42}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "callee": { "type": "FunctionExpression", "start":1,"end":40,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":40}}, @@ -48,21 +52,17 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + "arguments": [] } } ], diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/468/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/468/output.json index fcd0ab9858..067b73ce53 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/468/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/468/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:36)" + "SyntaxError: Binding 'eval' in strict mode. (1:36)" ], "program": { "type": "Program", @@ -58,11 +58,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/469/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/469/output.json index d557326e99..2d7204637a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/469/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/469/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:36)" + "SyntaxError: Binding 'arguments' in strict mode. (1:36)" ], "program": { "type": "Program", @@ -58,11 +58,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/470/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/470/output.json index 3040718fd5..44484811f9 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/470/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/470/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:47)" + "SyntaxError: Binding 'eval' in strict mode. (1:47)" ], "program": { "type": "Program", @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/471/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/471/output.json index 429d686ed4..dca567981b 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/471/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/471/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:47)" + "SyntaxError: Binding 'arguments' in strict mode. (1:47)" ], "program": { "type": "Program", @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/472/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/472/output.json index 79c71ebb54..3338052138 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/472/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/472/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:32)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -56,11 +56,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/473/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/473/output.json index ec34fa9d5c..3d1c7d7ebe 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/473/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/473/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:32)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -56,11 +56,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/474/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/474/output.json index 2ad9422223..5593bc5e19 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/474/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/474/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:34)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/475/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/475/output.json index c85c53c215..6b15ccd03e 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/475/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/475/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:34)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/476/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/476/output.json index 8635017ed5..35025e0c60 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/476/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/476/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:34)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/477/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/477/output.json index 0090b60112..5bead73e79 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/477/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/477/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:34)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/478/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/478/output.json index 439436ef7e..0b82488fd4 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/478/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/478/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:32)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/479/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/479/output.json index b68c731a58..9bbefb53c9 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/479/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/479/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:32)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/480/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/480/output.json index 52dbdc3d5c..58d6e13320 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/480/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/480/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:32)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/481/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/481/output.json index 48c2df5468..0a859a25f4 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/481/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/481/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:32)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/482/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/482/output.json index 3c4ac7fd38..eacc05a4b0 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/482/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/482/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:41)" + "SyntaxError: Binding 'eval' in strict mode. (1:41)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/483/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/483/output.json index e183294a23..4fc4cfff5a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/483/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/483/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:41)" + "SyntaxError: Binding 'arguments' in strict mode. (1:41)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/484/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/484/output.json index c252adad5c..fdc46d061d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/484/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/484/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:9)" + "SyntaxError: Binding 'eval' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":17,"end":29,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":29}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/485/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/485/output.json index 2c691b4f70..7b1924caf1 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/485/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/485/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:9)" + "SyntaxError: Binding 'arguments' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":22,"end":34,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":34}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/486/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/486/output.json index 9e3046fe27..48f9179f3b 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/486/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/486/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":57}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:42)" + "SyntaxError: Binding 'eval' in strict mode. (1:42)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "CallExpression", "start":33,"end":54,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":54}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "callee": { "type": "FunctionExpression", "start":33,"end":52,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":52}}, @@ -49,11 +53,7 @@ "directives": [] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + "arguments": [] } } ], @@ -64,11 +64,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/487/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/487/output.json index 2502c52e18..2d2f562d54 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/487/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/487/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":62}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:42)" + "SyntaxError: Binding 'arguments' in strict mode. (1:42)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "CallExpression", "start":33,"end":59,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":59}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "callee": { "type": "FunctionExpression", "start":33,"end":57,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":57}}, @@ -49,11 +53,7 @@ "directives": [] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + "arguments": [] } } ], @@ -64,11 +64,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/488/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/488/output.json index 887c411495..3c81b46822 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/488/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/488/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:10)" + "SyntaxError: Binding 'eval' in strict mode. (1:10)" ], "program": { "type": "Program", @@ -19,6 +19,10 @@ "callee": { "type": "FunctionExpression", "start":1,"end":33,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":33}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":14,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":14},"identifierName":"eval"}, @@ -38,18 +42,14 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "arguments": [] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/489/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/489/output.json index 250afef7d8..8e6c5c8943 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/489/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/489/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:10)" + "SyntaxError: Binding 'arguments' in strict mode. (1:10)" ], "program": { "type": "Program", @@ -19,6 +19,10 @@ "callee": { "type": "FunctionExpression", "start":1,"end":38,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":38}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":19,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":19},"identifierName":"arguments"}, @@ -38,18 +42,14 @@ "value": { "type": "DirectiveLiteral", "start":23,"end":35,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":35}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "arguments": [] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/490/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/490/output.json index 03985eff0b..9229db313a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/490/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/490/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:47)" + "SyntaxError: Binding 'eval' in strict mode. (1:47)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":59,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":59}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectProperty", @@ -62,11 +66,7 @@ } } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -77,11 +77,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/491/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/491/output.json index 29ce013f0b..c5b8877683 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/491/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/491/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Binding 'package' in strict mode (1:10)" + "SyntaxError: Binding 'package' in strict mode. (1:10)" ], "program": { "type": "Program", @@ -19,6 +19,10 @@ "callee": { "type": "FunctionExpression", "start":1,"end":36,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":36}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":17,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":17},"identifierName":"package"}, @@ -38,18 +42,14 @@ "value": { "type": "DirectiveLiteral", "start":21,"end":33,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":33}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "arguments": [] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/492/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/492/output.json index 60d4df26f9..47a65a4a93 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/492/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/492/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:48)" + "SyntaxError: Binding 'eval' in strict mode. (1:48)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":59,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":59}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectProperty", @@ -81,11 +85,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -96,11 +96,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/493/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/493/output.json index 4ee83b1402..6f387fb201 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/493/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/493/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":56}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:41)" + "SyntaxError: Binding 'eval' in strict mode. (1:41)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":52,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":52}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectMethod", @@ -60,11 +64,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -75,11 +75,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/494/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/494/output.json index 0c8905156a..68a903fb4f 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/494/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/494/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":64,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":64}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:49)" + "SyntaxError: Binding 'eval' in strict mode. (1:49)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":60,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":60}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectProperty", @@ -68,11 +72,7 @@ } } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -83,11 +83,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/495/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/495/output.json index 3ccaace1b1..830edc82be 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/495/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/495/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":22,"end":34,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":34}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/496/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/496/output.json index dc142e7610..232a3d3612 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/496/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/496/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:15)" + "SyntaxError: Binding 'arguments' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":27,"end":39,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":39}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/497/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/497/output.json index d887db53f5..9b32d2b448 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/497/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/497/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:48)" + "SyntaxError: Binding 'eval' in strict mode. (1:48)" ], "program": { "type": "Program", @@ -57,11 +57,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/498/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/498/output.json index ded1814137..7395b0a56a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/498/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/498/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:48)" + "SyntaxError: Binding 'arguments' in strict mode. (1:48)" ], "program": { "type": "Program", @@ -57,11 +57,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/500/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/500/output.json index f4096149d8..dab3473097 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/500/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/500/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:33)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:33)" ], "program": { "type": "Program", @@ -46,11 +46,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/502/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/502/output.json index 8caf22da60..7e92eeb15f 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/502/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/502/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:36)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:36)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":34,"end":45,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":45}}, + "extra": { + "parenthesized": true, + "parenStart": 33 + }, "properties": [ { "type": "ObjectProperty", @@ -57,11 +61,7 @@ "value": 42 } } - ], - "extra": { - "parenthesized": true, - "parenStart": 33 - } + ] } } ], @@ -72,11 +72,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/504/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/504/output.json index a3eee1ca11..917c3e5a9e 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/504/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/504/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: Unexpected reserved word 'implements' (1:37)" + "SyntaxError: Unexpected reserved word 'implements'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/505/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/505/output.json index cffcb241d4..98446531fa 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/505/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/505/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:37)" + "SyntaxError: Unexpected reserved word 'interface'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/506/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/506/output.json index 3d7bd0ac8e..4e1da8899d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/506/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/506/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}}, "errors": [ - "SyntaxError: Unexpected reserved word 'package' (1:37)" + "SyntaxError: Unexpected reserved word 'package'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/507/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/507/output.json index 4c1f2d2844..52b9164d1a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/507/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/507/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}}, "errors": [ - "SyntaxError: Unexpected reserved word 'private' (1:37)" + "SyntaxError: Unexpected reserved word 'private'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/508/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/508/output.json index dcf994402a..f7dbc7b74c 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/508/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/508/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Unexpected reserved word 'protected' (1:37)" + "SyntaxError: Unexpected reserved word 'protected'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/509/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/509/output.json index c7306ecdb6..5e4ded19fd 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/509/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/509/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Unexpected reserved word 'public' (1:37)" + "SyntaxError: Unexpected reserved word 'public'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/510/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/510/output.json index 41fd579945..70f7e9670e 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/510/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/510/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Unexpected reserved word 'static' (1:37)" + "SyntaxError: Unexpected reserved word 'static'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/511/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/511/output.json index 1605445790..fda02a2a3f 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/511/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/511/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "errors": [ - "SyntaxError: Binding 'static' in strict mode (1:15)" + "SyntaxError: Binding 'static' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":25,"end":37,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":37}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/512/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/512/output.json index b184d58817..7f3b58f78a 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/512/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/512/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Binding 'static' in strict mode (1:9)" + "SyntaxError: Binding 'static' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":20,"end":32,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":32}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/513/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/513/output.json index 07cfc93246..7feccdb115 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/513/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/513/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Unexpected reserved word 'static' (1:23)" + "SyntaxError: Unexpected reserved word 'static'. (1:23)" ], "program": { "type": "Program", @@ -36,11 +36,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/514/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/514/output.json index 3b77c9170b..3fba35b99d 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/514/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/514/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Argument name clash (1:14)" + "SyntaxError: Argument name clash. (1:14)" ], "program": { "type": "Program", @@ -43,11 +43,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/515/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/515/output.json index 0581517d99..55829c2b07 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/515/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/515/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:11)" + "SyntaxError: Binding 'eval' in strict mode. (1:11)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/516/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/516/output.json index aafa09421c..b82f2cea47 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/516/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/516/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Binding 'package' in strict mode (1:11)" + "SyntaxError: Binding 'package' in strict mode. (1:11)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":22,"end":34,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":34}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/517/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/517/output.json index df3094e728..8cf993f513 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/517/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/517/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}}, "errors": [ - "SyntaxError: Argument name clash (1:43)" + "SyntaxError: Argument name clash. (1:43)" ], "program": { "type": "Program", @@ -66,11 +66,11 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/518/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/518/output.json index bcaf874206..8f987f7098 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/518/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/518/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Argument name clash (1:15)" + "SyntaxError: Argument name clash. (1:15)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":35,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":35}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, @@ -46,18 +50,14 @@ "value": { "type": "DirectiveLiteral", "start":20,"end":32,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":32}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/519/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/519/output.json index 65f5a908f0..688a01f586 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/519/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/519/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}}, "errors": [ - "SyntaxError: Argument name clash (1:44)" + "SyntaxError: Argument name clash. (1:44)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":30,"end":50,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":50}}, + "extra": { + "parenthesized": true, + "parenStart": 29 + }, "id": { "type": "Identifier", "start":39,"end":40,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":40},"identifierName":"b"}, @@ -55,10 +59,6 @@ "start":47,"end":50,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":50}}, "body": [], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 29 } } } @@ -70,11 +70,11 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/520/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/520/output.json index a1ab8b4653..911fe15b76 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/520/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/520/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:12)" + "SyntaxError: Binding 'eval' in strict mode. (1:12)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":35,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":35}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, @@ -41,18 +45,14 @@ "value": { "type": "DirectiveLiteral", "start":20,"end":32,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":32}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/521/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/521/output.json index 7caed97929..44b440b91f 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/521/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/521/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Binding 'package' in strict mode (1:12)" + "SyntaxError: Binding 'package' in strict mode. (1:12)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":38,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":38}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, @@ -41,18 +45,14 @@ "value": { "type": "DirectiveLiteral", "start":23,"end":35,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":35}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/522/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/522/output.json index a53f5cb5d2..f55a1a9f98 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/522/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/522/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":69,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":69}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:65)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:65)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":28,"end":40,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":40}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] @@ -94,11 +94,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/523/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/523/output.json index 98b811bf5f..31f281be9c 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/523/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/523/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Unexpected keyword 'this' (1:4)" + "SyntaxError: Unexpected keyword 'this'. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/524/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/524/output.json index 4323a83f4c..0651431d13 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/524/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/524/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":3}}, "errors": [ - "SyntaxError: Illegal newline after throw (1:5)" + "SyntaxError: Illegal newline after throw. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/536/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/536/output.json index 603923e34e..6c2e7b4aa6 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/536/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/536/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Const declarations require an initialization value (1:7)" + "SyntaxError: 'Const declarations' require an initialization value. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/544/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/544/output.json index 87e0021bd4..6200ad3f14 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/544/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/544/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":25}}, "errors": [ - "SyntaxError: Unexpected reserved word 'public' (2:8)" + "SyntaxError: Unexpected reserved word 'public'. (2:8)" ], "program": { "type": "Program", @@ -24,6 +24,9 @@ { "type": "ObjectProperty", "start":22,"end":28,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":14}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,9 +39,6 @@ "type": "Identifier", "start":22,"end":28,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":14},"identifierName":"public"}, "name": "public" - }, - "extra": { - "shorthand": true } } ] @@ -65,11 +65,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/545/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/545/output.json index d0a88458d8..7227f3e875 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/545/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/545/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Unexpected reserved word 'public' (1:8)" + "SyntaxError: Unexpected reserved word 'public'. (1:8)" ], "program": { "type": "Program", @@ -24,6 +24,9 @@ { "type": "ObjectProperty", "start":8,"end":14,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":14}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,9 +39,6 @@ "type": "Identifier", "start":8,"end":14,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":14},"identifierName":"public"}, "name": "public" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/550/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/550/output.json index e73c9a97f5..81e80a03d4 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/550/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/550/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":13}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (2:10)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (2:10)" ], "program": { "type": "Program", @@ -43,11 +43,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/552/output.json b/packages/babel-parser/test/fixtures/core/uncategorised/552/output.json index 765b5e13a1..f6c6e7c58b 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/552/output.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/552/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":13}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (2:10)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (2:10)" ], "program": { "type": "Program", @@ -43,11 +43,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/core/uncategorised/555/options.json b/packages/babel-parser/test/fixtures/core/uncategorised/555/options.json index c1c6450ba3..2f22ade906 100644 --- a/packages/babel-parser/test/fixtures/core/uncategorised/555/options.json +++ b/packages/babel-parser/test/fixtures/core/uncategorised/555/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (3:13)" -} + "throws": "Rest element must be last element. (3:13)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-rest/output.json b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-rest/output.json index 2770669d14..4f97245424 100644 --- a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-rest/output.json +++ b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-rest/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Unexpected trailing comma after rest element (1:5)" + "SyntaxError: Unexpected trailing comma after rest element. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-for-in/output.json b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-for-in/output.json index e854b9c5e7..d10c3b2cb2 100644 --- a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-for-in/output.json +++ b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-for-in/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Unexpected trailing comma after rest element (1:10)" + "SyntaxError: Unexpected trailing comma after rest element. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-nested/output.json b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-nested/output.json index 9d70fca940..1a764a9ed4 100644 --- a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-nested/output.json +++ b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-nested/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Unexpected trailing comma after rest element (1:6)" + "SyntaxError: Unexpected trailing comma after rest element. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/invalid-location/options.json b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/invalid-location/options.json index 0dac59b7a8..032c2a5069 100644 --- a/packages/babel-parser/test/fixtures/es2015/array-rest-spread/invalid-location/options.json +++ b/packages/babel-parser/test/fixtures/es2015/array-rest-spread/invalid-location/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:1)" -} + "throws": "Rest element must be last element. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-2/output.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-2/output.json index 09d15bfd29..4e59252097 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-2/output.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:5)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-2/output.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-2/output.json index 9f5e348e99..cc46874cf7 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-2/output.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:5)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-3/output.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-3/output.json index 5283e2a52a..23c45add44 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-3/output.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:3)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern/output.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern/output.json index c2220d23a6..8d6e26697a 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern/output.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-array-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:3)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern-member/output.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern-member/output.json index e211f20e7d..89f11f8853 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern-member/output.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern-member/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Binding member expression (1:7)" + "SyntaxError: Binding member expression. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern/output.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern/output.json index 0749c0ba92..a33f06e060 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern/output.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens-object-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:7)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens/output.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens/output.json index 07989bd927..afde07cd68 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens/output.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/inner-parens/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:12)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/arrow-functions/invalid-rest-in-params/options.json b/packages/babel-parser/test/fixtures/es2015/arrow-functions/invalid-rest-in-params/options.json index c1c6450ba3..2f22ade906 100644 --- a/packages/babel-parser/test/fixtures/es2015/arrow-functions/invalid-rest-in-params/options.json +++ b/packages/babel-parser/test/fixtures/es2015/arrow-functions/invalid-rest-in-params/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (3:13)" -} + "throws": "Rest element must be last element. (3:13)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-in-object-method/output.json b/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-in-object-method/output.json index a7fb3e5724..58fbf48dcc 100644 --- a/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-in-object-method/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-in-object-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":87,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":3}}, "errors": [ - "SyntaxError: super is only allowed in object methods and classes (4:13)" + "SyntaxError: 'super' is only allowed in object methods and classes. (4:13)" ], "program": { "type": "Program", @@ -24,12 +24,12 @@ "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6},"identifierName":"Object"}, "name": "Object" }, + "computed": false, "property": { "type": "Identifier", "start":7,"end":13,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":13},"identifierName":"create"}, "name": "create" - }, - "computed": false + } }, "arguments": [ { @@ -88,12 +88,12 @@ "type": "Super", "start":63,"end":68,"loc":{"start":{"line":4,"column":13},"end":{"line":4,"column":18}} }, + "computed": false, "property": { "type": "Identifier", "start":69,"end":72,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":22},"identifierName":"foo"}, "name": "foo" - }, - "computed": false + } } } ], diff --git a/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-outside-constructor/output.json b/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-outside-constructor/output.json index 8813fbf719..6ee5b3f9fe 100644 --- a/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-outside-constructor/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class-methods/direct-super-outside-constructor/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (2:8)" + "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (2:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-duplicate-method-params/output.json b/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-duplicate-method-params/output.json index 4fa31326d3..f2406d3d01 100644 --- a/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-duplicate-method-params/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-duplicate-method-params/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Argument name clash (2:11)" + "SyntaxError: Argument name clash. (2:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-generator-prototype/output.json b/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-generator-prototype/output.json index d5de1e2c20..1b0004a14d 100644 --- a/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-generator-prototype/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-generator-prototype/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have static property named prototype (2:10)" + "SyntaxError: Classes may not have static property named prototype. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-prototype/output.json b/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-prototype/output.json index c4d1636033..3a780d8815 100644 --- a/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-prototype/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class-methods/disallow-static-prototype/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have static property named prototype (2:9)" + "SyntaxError: Classes may not have static property named prototype. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/class-methods/getter-signature/output.json b/packages/babel-parser/test/fixtures/es2015/class-methods/getter-signature/output.json index a135021f7a..6a9ce51140 100644 --- a/packages/babel-parser/test/fixtures/es2015/class-methods/getter-signature/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class-methods/getter-signature/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: getter must not have any formal parameters (2:2)" + "SyntaxError: A 'get' accesor must not have any formal parameters. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/class-methods/malformed-super-expression/output.json b/packages/babel-parser/test/fixtures/es2015/class-methods/malformed-super-expression/output.json index 8fa6cbb497..df68680499 100644 --- a/packages/babel-parser/test/fixtures/es2015/class-methods/malformed-super-expression/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class-methods/malformed-super-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]) (3:4)" + "SyntaxError: 'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]). (3:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/class/extends-strict/output.json b/packages/babel-parser/test/fixtures/es2015/class/extends-strict/output.json index 5b9c55e234..49c4af0699 100644 --- a/packages/babel-parser/test/fixtures/es2015/class/extends-strict/output.json +++ b/packages/babel-parser/test/fixtures/es2015/class/extends-strict/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":64,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":7}}, "errors": [ - "SyntaxError: 'with' in strict mode (2:2)" + "SyntaxError: 'with' in strict mode. (2:2)" ], "program": { "type": "Program", @@ -21,6 +21,10 @@ "superClass": { "type": "CallExpression", "start":17,"end":60,"loc":{"start":{"line":1,"column":17},"end":{"line":4,"column":3}}, + "extra": { + "parenthesized": true, + "parenStart": 16 + }, "callee": { "type": "FunctionExpression", "start":17,"end":58,"loc":{"start":{"line":1,"column":17},"end":{"line":4,"column":1}}, @@ -62,11 +66,7 @@ "directives": [] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 16 - } + "arguments": [] }, "body": { "type": "ClassBody", diff --git a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-module/output.json b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-module/output.json index 66f3fdbdee..aedf837aba 100644 --- a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-module/output.json +++ b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-module/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:8)" + "SyntaxError: Binding 'arguments' in strict mode. (1:8)" ], "program": { "type": "Program", @@ -24,6 +24,9 @@ { "type": "ObjectProperty", "start":8,"end":17,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":17}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,9 +39,6 @@ "type": "Identifier", "start":8,"end":17,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":17},"identifierName":"arguments"}, "name": "arguments" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-strict/output.json b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-strict/output.json index 4fb2246866..8f8fa354dc 100644 --- a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-strict/output.json +++ b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-arguments-strict/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":28}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (2:8)" + "SyntaxError: Binding 'arguments' in strict mode. (2:8)" ], "program": { "type": "Program", @@ -24,6 +24,9 @@ { "type": "ObjectProperty", "start":22,"end":31,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":17}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,9 +39,6 @@ "type": "Identifier", "start":22,"end":31,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":17},"identifierName":"arguments"}, "name": "arguments" - }, - "extra": { - "shorthand": true } } ] @@ -65,11 +65,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-eval/output.json b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-eval/output.json index 9688161107..03fdbd51b4 100644 --- a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-eval/output.json +++ b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-eval/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:16)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:16)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":15,"end":38,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":38}}, + "extra": { + "parenthesized": true, + "parenStart": 14 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -24,6 +28,9 @@ { "type": "ObjectProperty", "start":16,"end":31,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":31}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -45,9 +52,6 @@ "start":23,"end":31,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":31},"identifierName":"defValue"}, "name": "defValue" } - }, - "extra": { - "shorthand": true } } ] @@ -56,10 +60,6 @@ "type": "Identifier", "start":35,"end":38,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":38},"identifierName":"obj"}, "name": "obj" - }, - "extra": { - "parenthesized": true, - "parenStart": 14 } } } @@ -71,11 +71,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-this/output.json b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-this/output.json index 0c6596304a..f30023ae8a 100644 --- a/packages/babel-parser/test/fixtures/es2015/destructuring/binding-this/output.json +++ b/packages/babel-parser/test/fixtures/es2015/destructuring/binding-this/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Unexpected keyword 'this' (1:6)" + "SyntaxError: Unexpected keyword 'this'. (1:6)" ], "program": { "type": "Program", @@ -24,6 +24,9 @@ { "type": "ObjectProperty", "start":6,"end":10,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":10}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,9 +39,6 @@ "type": "Identifier", "start":6,"end":10,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":10},"identifierName":"this"}, "name": "this" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-array/output.json b/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-array/output.json index f0bbee72ab..666f689539 100644 --- a/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-array/output.json +++ b/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-array/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)" ], "program": { "type": "Program", @@ -20,17 +20,17 @@ "left": { "type": "ArrayPattern", "start":1,"end":4,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":4}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "elements": [ { "type": "Identifier", "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3},"identifierName":"a"}, "name": "a" } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] }, "right": { "type": "NumericLiteral", diff --git a/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-object/output.json b/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-object/output.json index 2519d3595f..42ff270411 100644 --- a/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-object/output.json +++ b/packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-object/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)" ], "program": { "type": "Program", @@ -20,10 +20,17 @@ "left": { "type": "ObjectPattern", "start":1,"end":4,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":4}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectProperty", "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,16 +43,9 @@ "type": "Identifier", "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3},"identifierName":"a"}, "name": "a" - }, - "extra": { - "shorthand": true } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] }, "right": { "type": "NumericLiteral", diff --git a/packages/babel-parser/test/fixtures/es2015/duplicate-proto/in-new-expression/output.json b/packages/babel-parser/test/fixtures/es2015/duplicate-proto/in-new-expression/output.json index 41eade104e..532daf7a1f 100644 --- a/packages/babel-parser/test/fixtures/es2015/duplicate-proto/in-new-expression/output.json +++ b/packages/babel-parser/test/fixtures/es2015/duplicate-proto/in-new-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:24)" + "SyntaxError: Redefinition of __proto__ property. (1:24)" ], "program": { "type": "Program", @@ -59,12 +59,12 @@ } ] }, + "computed": false, "property": { "type": "Identifier", "start":43,"end":52,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":52},"identifierName":"__proto__"}, "name": "__proto__" - }, - "computed": false + } }, "arguments": [] } diff --git a/packages/babel-parser/test/fixtures/es2015/for-in/bare-initializer/output.json b/packages/babel-parser/test/fixtures/es2015/for-in/bare-initializer/output.json index 838c1aea7f..2e5f623fb1 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-in/bare-initializer/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-in/bare-initializer/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":18}}, "errors": [ - "SyntaxError: Invalid left-hand side in for-loop (2:5)" + "SyntaxError: Invalid left-hand side in for-loop. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/for-in/const-initializer/output.json b/packages/babel-parser/test/fixtures/es2015/for-in/const-initializer/output.json index 4e70874d27..b5ab86130b 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-in/const-initializer/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-in/const-initializer/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/for-in/let-initializer/output.json b/packages/babel-parser/test/fixtures/es2015/for-in/let-initializer/output.json index c3c20c0a10..312dcca15d 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-in/let-initializer/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-in/let-initializer/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/for-in/strict-initializer/output.json b/packages/babel-parser/test/fixtures/es2015/for-in/strict-initializer/output.json index 26b3ee9559..1aed305955 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-in/strict-initializer/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-in/strict-initializer/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (2:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (2:5)" ], "program": { "type": "Program", @@ -56,11 +56,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/for-in/var-arraybindingpattern-initializer/output.json b/packages/babel-parser/test/fixtures/es2015/for-in/var-arraybindingpattern-initializer/output.json index 32755b31ea..40ce6d6805 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-in/var-arraybindingpattern-initializer/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-in/var-arraybindingpattern-initializer/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/for-in/var-objectbindingpattern-initializer/output.json b/packages/babel-parser/test/fixtures/es2015/for-in/var-objectbindingpattern-initializer/output.json index 9bde6c44ee..9cd2f3bc41 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-in/var-objectbindingpattern-initializer/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-in/var-objectbindingpattern-initializer/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", @@ -27,6 +27,9 @@ { "type": "ObjectProperty", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -39,9 +42,6 @@ "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, "name": "a" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/for-of/bare-initializer/output.json b/packages/babel-parser/test/fixtures/es2015/for-of/bare-initializer/output.json index 40500649a6..3e918e9a68 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-of/bare-initializer/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-of/bare-initializer/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":18}}, "errors": [ - "SyntaxError: Invalid left-hand side in for-loop (2:5)" + "SyntaxError: Invalid left-hand side in for-loop. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/for-of/invalid-escape-of/output.json b/packages/babel-parser/test/fixtures/es2015/for-of/invalid-escape-of/output.json index 5b248b94f2..4e3f6e9cac 100644 --- a/packages/babel-parser/test/fixtures/es2015/for-of/invalid-escape-of/output.json +++ b/packages/babel-parser/test/fixtures/es2015/for-of/invalid-escape-of/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Missing semicolon (1:6)", - "SyntaxError: Missing semicolon (1:14)" + "SyntaxError: Missing semicolon. (1:6)", + "SyntaxError: Missing semicolon. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/generators/invalid-escape-yield/output.json b/packages/babel-parser/test/fixtures/es2015/generators/invalid-escape-yield/output.json index f6604179ce..66942ac3de 100644 --- a/packages/babel-parser/test/fixtures/es2015/generators/invalid-escape-yield/output.json +++ b/packages/babel-parser/test/fixtures/es2015/generators/invalid-escape-yield/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:16)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:16)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":29,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":29}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": null, "generator": true, "async": false, @@ -35,10 +39,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/es2015/generators/invalid-hanging/output.json b/packages/babel-parser/test/fixtures/es2015/generators/invalid-hanging/output.json index 27beba5b2e..9f1d6d3e1b 100644 --- a/packages/babel-parser/test/fixtures/es2015/generators/invalid-hanging/output.json +++ b/packages/babel-parser/test/fixtures/es2015/generators/invalid-hanging/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Generators can only be declared at the top level or inside a block (1:16)" + "SyntaxError: Generators can only be declared at the top level or inside a block. (1:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-const/output.json b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-const/output.json index 425fd47bc0..12bf9e1467 100644 --- a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-const/output.json +++ b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-const/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":17}}, "errors": [ - "SyntaxError: Unexpected keyword 'const' (1:4)", - "SyntaxError: Escape sequence in keyword const (1:4)", - "SyntaxError: Escape sequence in keyword const (3:0)" + "SyntaxError: Unexpected keyword 'const'. (1:4)", + "SyntaxError: Escape sequence in keyword const. (1:4)", + "SyntaxError: Escape sequence in keyword const. (3:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-export/output.json b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-export/output.json index 9aa7fd43bb..40465eb553 100644 --- a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-export/output.json +++ b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-export/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":18}}, "errors": [ - "SyntaxError: Unexpected keyword 'export' (1:4)", - "SyntaxError: Escape sequence in keyword export (1:4)", - "SyntaxError: Escape sequence in keyword export (4:0)" + "SyntaxError: Unexpected keyword 'export'. (1:4)", + "SyntaxError: Escape sequence in keyword export. (1:4)", + "SyntaxError: Escape sequence in keyword export. (4:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-if/output.json b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-if/output.json index a9fc063b1b..4a33bb6303 100644 --- a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-if/output.json +++ b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-if/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Escape sequence in keyword if (1:0)" + "SyntaxError: Escape sequence in keyword if. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-import/output.json b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-import/output.json index 0533a2a4de..01969cf25b 100644 --- a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-import/output.json +++ b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-import/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":90,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":41}}, "errors": [ - "SyntaxError: Unexpected keyword 'import' (1:4)", - "SyntaxError: Escape sequence in keyword import (1:4)", - "SyntaxError: Escape sequence in keyword import (3:0)" + "SyntaxError: Unexpected keyword 'import'. (1:4)", + "SyntaxError: Escape sequence in keyword import. (1:4)", + "SyntaxError: Escape sequence in keyword import. (3:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-null/output.json b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-null/output.json index 1205de6403..f72c9e56ba 100644 --- a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-null/output.json +++ b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-null/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Escape sequence in keyword null (1:0)" + "SyntaxError: Escape sequence in keyword null. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-true/output.json b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-true/output.json index 13d4895854..83c027b970 100644 --- a/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-true/output.json +++ b/packages/babel-parser/test/fixtures/es2015/identifiers/invalid-escape-seq-true/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Escape sequence in keyword true (1:0)" + "SyntaxError: Escape sequence in keyword true. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/let/invalid-escape/output.json b/packages/babel-parser/test/fixtures/es2015/let/invalid-escape/output.json index 481ab58d62..aa5f6b4580 100644 --- a/packages/babel-parser/test/fixtures/es2015/let/invalid-escape/output.json +++ b/packages/babel-parser/test/fixtures/es2015/let/invalid-escape/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Missing semicolon (1:8)" + "SyntaxError: Missing semicolon. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/output.json b/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/output.json index c45edc3f95..0f89457652 100644 --- a/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/output.json +++ b/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":7}}, "errors": [ - "SyntaxError: Unexpected reserved word 'let' (2:0)" + "SyntaxError: Unexpected reserved word 'let'. (2:0)" ], "program": { "type": "Program", @@ -41,11 +41,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/meta-properties/invalid-arrow-function/output.json b/packages/babel-parser/test/fixtures/es2015/meta-properties/invalid-arrow-function/output.json index eee1bada98..8708bc00f8 100644 --- a/packages/babel-parser/test/fixtures/es2015/meta-properties/invalid-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/es2015/meta-properties/invalid-arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: new.target can only be used in functions (2:2)" + "SyntaxError: `new.target` can only be used in functions. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-invalid-prop/output.json b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-invalid-prop/output.json index 525e9f0ba0..e18fe0dacc 100644 --- a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-invalid-prop/output.json +++ b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-invalid-prop/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: The only valid meta property for new is new.target (2:6)" + "SyntaxError: The only valid meta property for new is new.target. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-new/output.json b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-new/output.json index 95fcf34a01..d420876050 100644 --- a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-new/output.json +++ b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-new/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: Escape sequence in keyword new (1:15)" + "SyntaxError: Escape sequence in keyword new. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-target/output.json b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-target/output.json index 6524f1e405..3c5fee42f1 100644 --- a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-target/output.json +++ b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid-escaped-target/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: The only valid meta property for new is new.target (1:19)" + "SyntaxError: The only valid meta property for new is new.target. (1:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid/output.json b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid/output.json index eac0709d91..0b1babd1f9 100644 --- a/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid/output.json +++ b/packages/babel-parser/test/fixtures/es2015/meta-properties/new-target-invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: new.target can only be used in functions (1:0)" + "SyntaxError: `new.target` can only be used in functions. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-export-default-and-export-as-default/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-export-default-and-export-as-default/output.json index c2f48e1131..e77da15e74 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-export-default-and-export-as-default/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-export-default-and-export-as-default/output.json @@ -3,7 +3,7 @@ "start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":26}}, "errors": [ "SyntaxError: Only one default export allowed per module. (2:9)", - "SyntaxError: Export 'foo' is not defined (2:9)" + "SyntaxError: Export 'foo' is not defined. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring10/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring10/output.json index 119ea1be6c..ea729da4b2 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring10/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring10/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":60,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":34}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:20)", + "SyntaxError: Identifier 'foo' has already been declared. (2:20)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:20)" ], "program": { @@ -77,6 +77,9 @@ { "type": "ObjectProperty", "start":46,"end":49,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":23}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -89,9 +92,6 @@ "type": "Identifier", "start":46,"end":49,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":23},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring11/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring11/output.json index 933af6bc6d..bccacaba39 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring11/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring11/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":96,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":69}}, "errors": [ - "SyntaxError: Identifier 'foo4' has already been declared (2:50)", + "SyntaxError: Identifier 'foo4' has already been declared. (2:50)", "SyntaxError: `foo4` has already been exported. Exported identifiers must be unique. (2:50)" ], "program": { @@ -81,6 +81,9 @@ { "type": "ObjectProperty", "start":49,"end":52,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -93,9 +96,6 @@ "type": "Identifier", "start":49,"end":52,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring12/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring12/output.json index c5c74319fb..78efba09f1 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring12/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring12/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":94,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":67}}, "errors": [ - "SyntaxError: Identifier 'foo4' has already been declared (2:49)", + "SyntaxError: Identifier 'foo4' has already been declared. (2:49)", "SyntaxError: `foo4` has already been exported. Exported identifiers must be unique. (2:49)" ], "program": { @@ -77,6 +77,9 @@ { "type": "ObjectProperty", "start":48,"end":51,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":24}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -89,9 +92,6 @@ "type": "Identifier", "start":48,"end":51,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":24},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring13/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring13/output.json index 2e17d443f6..c17efc0442 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring13/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring13/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":103,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":76}}, "errors": [ - "SyntaxError: Identifier 'foo4' has already been declared (2:58)", + "SyntaxError: Identifier 'foo4' has already been declared. (2:58)", "SyntaxError: `foo4` has already been exported. Exported identifiers must be unique. (2:58)" ], "program": { @@ -99,6 +99,9 @@ { "type": "ObjectProperty", "start":62,"end":63,"loc":{"start":{"line":2,"column":35},"end":{"line":2,"column":36}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -111,9 +114,6 @@ "type": "Identifier", "start":62,"end":63,"loc":{"start":{"line":2,"column":35},"end":{"line":2,"column":36},"identifierName":"b"}, "name": "b" - }, - "extra": { - "shorthand": true } }, { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring14/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring14/output.json index c0baf34cf9..81bb6e08e7 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring14/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring14/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":33}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:21)", + "SyntaxError: Identifier 'foo' has already been declared. (2:21)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:21)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring15/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring15/output.json index 3d24d48320..2126b29b74 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring15/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring15/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ - "SyntaxError: Identifier 'foo2' has already been declared (2:13)", + "SyntaxError: Identifier 'foo2' has already been declared. (2:13)", "SyntaxError: `foo2` has already been exported. Exported identifiers must be unique. (2:13)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring16/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring16/output.json index 02547f2eee..bf712aed7a 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring16/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring16/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":33}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:22)", + "SyntaxError: Identifier 'foo' has already been declared. (2:22)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:22)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring17/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring17/output.json index df81eb4ac1..90e47bf358 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring17/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring17/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":21}}, "errors": [ - "SyntaxError: Identifier 'bar' has already been declared (2:13)", + "SyntaxError: Identifier 'bar' has already been declared. (2:13)", "SyntaxError: `bar` has already been exported. Exported identifiers must be unique. (2:13)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring18/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring18/output.json index 23ff7e9f44..08d6bfd425 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring18/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring18/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":40}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:28)", + "SyntaxError: Identifier 'foo' has already been declared. (2:28)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:28)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring19/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring19/output.json index 2c99a1b1d6..12a1755c46 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring19/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring19/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":64,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":42}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:29)", + "SyntaxError: Identifier 'foo' has already been declared. (2:29)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:29)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring2/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring2/output.json index 4673f33372..f3bb5a3a5f 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring2/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":27}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:15)", + "SyntaxError: Identifier 'foo' has already been declared. (2:15)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:15)" ], "program": { @@ -58,6 +58,9 @@ { "type": "ObjectProperty", "start":41,"end":44,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -70,9 +73,6 @@ "type": "Identifier", "start":41,"end":44,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring3/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring3/output.json index 300af91efc..0107e6652a 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring3/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":25}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:16)", + "SyntaxError: Identifier 'foo' has already been declared. (2:16)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:0)" ], "program": { @@ -30,6 +30,9 @@ { "type": "ObjectProperty", "start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -42,9 +45,6 @@ "type": "Identifier", "start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring4/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring4/output.json index 54ca454dbe..40b0f42a74 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring4/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":25}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:14)", + "SyntaxError: Identifier 'foo' has already been declared. (2:14)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:14)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring5/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring5/output.json index f8265d2b77..c2fa39fd94 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring5/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":25}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:16)", + "SyntaxError: Identifier 'foo' has already been declared. (2:16)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:0)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring6/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring6/output.json index 74dc3d4b6e..1bf3a89cb8 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring6/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring6/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":26}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:14)", + "SyntaxError: Identifier 'foo' has already been declared. (2:14)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:14)" ], "program": { @@ -30,6 +30,9 @@ { "type": "ObjectProperty", "start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -42,9 +45,6 @@ "type": "Identifier", "start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring7/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring7/output.json index 90a9d8e8df..7c2161e9e0 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring7/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring7/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":28}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:15)", + "SyntaxError: Identifier 'foo' has already been declared. (2:15)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:15)" ], "program": { @@ -63,6 +63,9 @@ { "type": "ObjectProperty", "start":41,"end":44,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -75,9 +78,6 @@ "type": "Identifier", "start":41,"end":44,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring8/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring8/output.json index b09cb52efb..4a3aa5c691 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring8/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring8/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":27}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:15)", + "SyntaxError: Identifier 'Foo' has already been declared. (2:15)", "SyntaxError: `Foo` has already been exported. Exported identifiers must be unique. (2:15)" ], "program": { @@ -55,6 +55,9 @@ { "type": "ObjectProperty", "start":36,"end":39,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -67,9 +70,6 @@ "type": "Identifier", "start":36,"end":39,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18},"identifierName":"Foo"}, "name": "Foo" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring9/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring9/output.json index db65b77d4d..574141b68f 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring9/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export-destructuring9/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":25}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:14)", + "SyntaxError: Identifier 'Foo' has already been declared. (2:14)", "SyntaxError: `Foo` has already been exported. Exported identifiers must be unique. (2:14)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export/output.json b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export/output.json index 86c07bcfa5..4773efea9e 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/duplicate-named-export/output.json @@ -3,8 +3,8 @@ "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:9)", - "SyntaxError: Export 'foo' is not defined (1:9)", - "SyntaxError: Export 'bar' is not defined (2:9)" + "SyntaxError: Export 'foo' is not defined. (1:9)", + "SyntaxError: Export 'bar' is not defined. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-flow/output.json b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-flow/output.json index ab2ca96011..26729bca55 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-flow/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-flow/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Unexpected keyword 'default' (1:9)" + "SyntaxError: Unexpected keyword 'default'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof-flow/output.json b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof-flow/output.json index d4df45baef..0e72d3d259 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof-flow/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof-flow/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Unexpected keyword 'typeof' (1:9)" + "SyntaxError: Unexpected keyword 'typeof'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof/output.json b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof/output.json index 95070d9dab..9312facd23 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-typeof/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Unexpected keyword 'typeof' (1:9)" + "SyntaxError: Unexpected keyword 'typeof'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword/output.json b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword/output.json index a627dce5e7..a0a71da528 100644 --- a/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword/output.json +++ b/packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}}, "errors": [ - "SyntaxError: Unexpected keyword 'debugger' (1:9)" + "SyntaxError: Unexpected keyword 'debugger'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/object/disallow-duplicate-method-params/output.json b/packages/babel-parser/test/fixtures/es2015/object/disallow-duplicate-method-params/output.json index 2d66299daa..7846ec071d 100644 --- a/packages/babel-parser/test/fixtures/es2015/object/disallow-duplicate-method-params/output.json +++ b/packages/babel-parser/test/fixtures/es2015/object/disallow-duplicate-method-params/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}}, "errors": [ - "SyntaxError: Argument name clash (2:11)" + "SyntaxError: Argument name clash. (2:11)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":21,"loc":{"start":{"line":1,"column":1},"end":{"line":3,"column":1}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectMethod", @@ -50,11 +54,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/es2015/object/invalid-accessor-generator/output.json b/packages/babel-parser/test/fixtures/es2015/object/invalid-accessor-generator/output.json index 09cc367ae9..69d7161540 100644 --- a/packages/babel-parser/test/fixtures/es2015/object/invalid-accessor-generator/output.json +++ b/packages/babel-parser/test/fixtures/es2015/object/invalid-accessor-generator/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":2}}, "errors": [ - "SyntaxError: A getter cannot be a generator (2:9)", - "SyntaxError: A setter cannot be a generator (3:9)" + "SyntaxError: A getter cannot be a generator. (2:9)", + "SyntaxError: A setter cannot be a generator. (3:9)" ], "program": { "type": "Program", @@ -17,6 +17,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":57,"loc":{"start":{"line":1,"column":1},"end":{"line":4,"column":1}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectMethod", @@ -68,14 +72,10 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/regex/duplicate-flags/output.json b/packages/babel-parser/test/fixtures/es2015/regex/duplicate-flags/output.json index 3974236950..39c82d98cf 100644 --- a/packages/babel-parser/test/fixtures/es2015/regex/duplicate-flags/output.json +++ b/packages/babel-parser/test/fixtures/es2015/regex/duplicate-flags/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Duplicate regular expression flag (1:6)" + "SyntaxError: Duplicate regular expression flag. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word-strict/output.json b/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word-strict/output.json index 4549edcbc9..832339a218 100644 --- a/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word-strict/output.json +++ b/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word-strict/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":45}}, "errors": [ - "SyntaxError: Unexpected reserved word 'implements' (2:11)", - "SyntaxError: Unexpected reserved word 'interface' (2:23)", - "SyntaxError: Unexpected reserved word 'package' (2:34)" + "SyntaxError: Unexpected reserved word 'implements'. (2:11)", + "SyntaxError: Unexpected reserved word 'interface'. (2:23)", + "SyntaxError: Unexpected reserved word 'package'. (2:34)" ], "program": { "type": "Program", @@ -27,10 +27,17 @@ "init": { "type": "ObjectExpression", "start":23,"end":57,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":43}}, + "extra": { + "parenthesized": true, + "parenStart": 22 + }, "properties": [ { "type": "ObjectProperty", "start":25,"end":35,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":21}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -43,14 +50,14 @@ "type": "Identifier", "start":25,"end":35,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":21},"identifierName":"implements"}, "name": "implements" - }, - "extra": { - "shorthand": true } }, { "type": "ObjectProperty", "start":37,"end":46,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":32}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -63,14 +70,14 @@ "type": "Identifier", "start":37,"end":46,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":32},"identifierName":"interface"}, "name": "interface" - }, - "extra": { - "shorthand": true } }, { "type": "ObjectProperty", "start":48,"end":55,"loc":{"start":{"line":2,"column":34},"end":{"line":2,"column":41}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -83,16 +90,9 @@ "type": "Identifier", "start":48,"end":55,"loc":{"start":{"line":2,"column":34},"end":{"line":2,"column":41},"identifierName":"package"}, "name": "package" - }, - "extra": { - "shorthand": true } } - ], - "extra": { - "parenthesized": true, - "parenStart": 22 - } + ] } } ], @@ -106,11 +106,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word/output.json b/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word/output.json index 752251aa9b..a1f45dbc7b 100644 --- a/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word/output.json +++ b/packages/babel-parser/test/fixtures/es2015/shorthand/reserved-word/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Unexpected keyword 'const' (1:11)", - "SyntaxError: Unexpected keyword 'if' (1:18)", - "SyntaxError: Unexpected keyword 'this' (1:22)" + "SyntaxError: Unexpected keyword 'const'. (1:11)", + "SyntaxError: Unexpected keyword 'if'. (1:18)", + "SyntaxError: Unexpected keyword 'this'. (1:22)" ], "program": { "type": "Program", @@ -27,10 +27,17 @@ "init": { "type": "ObjectExpression", "start":9,"end":28,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":28}}, + "extra": { + "parenthesized": true, + "parenStart": 8 + }, "properties": [ { "type": "ObjectProperty", "start":11,"end":16,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":16}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -43,14 +50,14 @@ "type": "Identifier", "start":11,"end":16,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":16},"identifierName":"const"}, "name": "const" - }, - "extra": { - "shorthand": true } }, { "type": "ObjectProperty", "start":18,"end":20,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":20}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -63,14 +70,14 @@ "type": "Identifier", "start":18,"end":20,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":20},"identifierName":"if"}, "name": "if" - }, - "extra": { - "shorthand": true } }, { "type": "ObjectProperty", "start":22,"end":26,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":26}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -83,16 +90,9 @@ "type": "Identifier", "start":22,"end":26,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":26},"identifierName":"this"}, "name": "this" - }, - "extra": { - "shorthand": true } } - ], - "extra": { - "parenthesized": true, - "parenStart": 8 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-const/output.json b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-const/output.json index 4c65f3b113..3bd4bb7886 100644 --- a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-const/output.json +++ b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-const/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Lexical declaration cannot appear in a single-statement context (1:5)" + "SyntaxError: Lexical declaration cannot appear in a single-statement context. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-async/output.json b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-async/output.json index 4ceffd86de..1d34010dff 100644 --- a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-async/output.json +++ b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-async/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Async functions can only be declared at the top level or inside a block (1:5)" + "SyntaxError: Async functions can only be declared at the top level or inside a block. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-generator/output.json b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-generator/output.json index f71d506d00..539e901804 100644 --- a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-generator/output.json +++ b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-generator/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Generators can only be declared at the top level or inside a block (1:13)" + "SyntaxError: Generators can only be declared at the top level or inside a block. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-strict/output.json b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-strict/output.json index 47915b8c2b..3be26026c0 100644 --- a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-strict/output.json +++ b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-func-strict/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}}, "errors": [ - "SyntaxError: In strict mode code, functions can only be declared at top level or inside a block (1:35)" + "SyntaxError: In strict mode code, functions can only be declared at top level or inside a block. (1:35)" ], "program": { "type": "Program", @@ -60,11 +60,11 @@ "value": { "type": "DirectiveLiteral", "start":16,"end":28,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":28}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-let/output.json b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-let/output.json index f9826760ea..2f0524fc05 100644 --- a/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-let/output.json +++ b/packages/babel-parser/test/fixtures/es2015/statements/label-invalid-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Missing semicolon (1:8)" + "SyntaxError: Missing semicolon. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/109/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/109/output.json index a3d47c9c21..ee7e50105a 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/109/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/109/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: for-of loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-of' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/123/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/123/output.json index 9bf15e6a3a..17191c0d4e 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/123/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/123/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}}, "errors": [ - "SyntaxError: super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (1:40)" + "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (1:40)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ClassExpression", "start":15,"end":50,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":50}}, + "extra": { + "parenthesized": true, + "parenStart": 14 + }, "id": { "type": "Identifier", "start":21,"end":22,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":22},"identifierName":"A"}, @@ -63,10 +67,6 @@ } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 14 } } } @@ -78,11 +78,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/125/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/125/output.json index 2d6cbfab11..86a7ac7ada 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/125/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/125/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}}, "errors": [ - "SyntaxError: Duplicate constructor in the same class (1:27)" + "SyntaxError: Duplicate constructor in the same class. (1:27)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/126/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/126/output.json index ccd3aa3f3e..d3dd61e5ec 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/126/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/126/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Class constructor may not be an accessor (1:14)" + "SyntaxError: Class constructor may not be an accessor. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/127/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/127/output.json index 8650fd6a5d..bb873cc1b7 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/127/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/127/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Constructor can't be a generator (1:11)" + "SyntaxError: Constructor can't be a generator. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/166/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/166/output.json index e1a64571a1..513548b108 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/166/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/166/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Argument name clash (1:16)" + "SyntaxError: Argument name clash. (1:16)" ], "program": { "type": "Program", @@ -33,6 +33,9 @@ { "type": "ObjectProperty", "start":16,"end":17,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -45,9 +48,6 @@ "type": "Identifier", "start":16,"end":17,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":17},"identifierName":"a"}, "name": "a" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/198/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/198/output.json index a880531bce..e3f4428bc9 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/198/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/198/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/199/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/199/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/199/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/199/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/200/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/200/output.json index 42696d4924..fb1d13c952 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/200/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/200/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/201/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/201/output.json index 9ed93409bc..4bccf581bf 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/201/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/201/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:3)" + "SyntaxError: Expected number in radix 8. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/202/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/202/output.json index 91dec1a230..17d44bb734 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/202/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/202/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/203/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/203/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/203/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/203/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/204/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/204/output.json index 2fbc3ece31..91c3423417 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/204/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/204/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/205/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/205/output.json index 4978bcf4e5..dd1203515e 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/205/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/205/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:3)" + "SyntaxError: Expected number in radix 8. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/206/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/206/output.json index bd3bd49916..fe15b2f041 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/206/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/206/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/207/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/207/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/207/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/207/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/208/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/208/output.json index fabbead514..47c0f4397a 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/208/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/208/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/209/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/209/output.json index c90afe1734..68c905933a 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/209/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/209/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/210/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/210/output.json index 2b8e4f22be..4f60e9e38b 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/210/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/210/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/211/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/211/output.json index 6cfde9edb3..b750712f4f 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/211/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/211/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/212/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/212/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/212/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/212/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/213/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/213/output.json index 6e3728ace3..31d92ec360 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/213/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/213/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/214/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/214/output.json index d5ba308d59..a909b5c95b 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/214/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/214/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/215/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/215/output.json index af38f05f89..4e1c026819 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/215/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/215/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/217/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/217/output.json index 8169a28310..0a7ba19e8c 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/217/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/217/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:4)" + "SyntaxError: Bad character escape sequence. (1:4)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, - "value": "\\u{}", "extra": { "raw": "\"\\u{}\"", "rawValue": "\\u{}" - } + }, + "value": "\\u{}" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/218/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/218/output.json index a5b7bb95f3..38e1cffe17 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/218/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/218/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:4)" + "SyntaxError: Bad character escape sequence. (1:4)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, - "value": "\\u{FFFF", "extra": { "raw": "\"\\u{FFFF\"", "rawValue": "\\u{FFFF" - } + }, + "value": "\\u{FFFF" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/219/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/219/output.json index 5c0123d27a..1bb3874a63 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/219/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/219/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:4)" + "SyntaxError: Bad character escape sequence. (1:4)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, - "value": "\\u{FFZ}", "extra": { "raw": "\"\\u{FFZ}\"", "rawValue": "\\u{FFZ}" - } + }, + "value": "\\u{FFZ}" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/220/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/220/output.json index 146edec02c..0815c316c0 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/220/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/220/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/221/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/221/output.json index 6e2bf85797..f89243f588 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/221/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/221/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Invalid left-hand side in array destructuring pattern (1:1)" + "SyntaxError: Invalid left-hand side in array destructuring pattern. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/222/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/222/output.json index c220984197..3f041c90f9 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/222/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/222/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: Invalid left-hand side in object destructuring pattern (1:7)" + "SyntaxError: Invalid left-hand side in object destructuring pattern. (1:7)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":16,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":16}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -52,10 +56,6 @@ "raw": "42" }, "value": 42 - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/223/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/223/output.json index 475564c668..6248583c3f 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/223/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/223/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Object pattern can't contain getter or setter (1:7)" + "SyntaxError: Object pattern can't contain getter or setter. (1:7)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":19,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":19}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -53,10 +57,6 @@ "raw": "0" }, "value": 0 - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/224/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/224/output.json index 5596ed9f78..2f8ee49512 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/224/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/224/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":5}}, "errors": [ - "SyntaxError: Missing semicolon (2:3)" + "SyntaxError: Missing semicolon. (2:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/225/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/225/output.json index 4cd6d09cff..c9593ef3ff 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/225/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/225/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":7}}, "errors": [ - "SyntaxError: Missing semicolon (2:5)" + "SyntaxError: Missing semicolon. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/226/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/226/output.json index dfaa426ceb..58ebd7f229 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/226/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/226/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Unexpected keyword 'default' (1:9)" + "SyntaxError: Unexpected keyword 'default'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/227/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/227/output.json index ddf1b38b6a..bbd27877b4 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/227/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/227/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":59}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:44)" + "SyntaxError: Binding 'eval' in strict mode. (1:44)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":55,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":55}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectProperty", @@ -81,11 +85,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -96,11 +96,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/228/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/228/output.json index 54c4857321..d32adee027 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/228/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/228/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Argument name clash (1:37)" + "SyntaxError: Argument name clash. (1:37)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":30,"end":45,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":45}}, + "extra": { + "parenthesized": true, + "parenStart": 29 + }, "properties": [ { "type": "ObjectMethod", @@ -65,11 +69,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 29 - } + ] } } ], @@ -80,11 +80,11 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/229/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/229/output.json index d30f2d17c2..4cb58cb397 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/229/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/229/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Unexpected keyword 'super' (1:4)" + "SyntaxError: Unexpected keyword 'super'. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/230/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/230/output.json index 1a676c59c0..f1f5faa51f 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/230/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/230/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Unexpected keyword 'default' (1:4)" + "SyntaxError: Unexpected keyword 'default'. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/231/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/231/output.json index 0e0111a35a..b292f4565e 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/231/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/231/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Unexpected keyword 'default' (1:4)" + "SyntaxError: Unexpected keyword 'default'. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/232/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/232/output.json index 154ac5251e..39504b4828 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/232/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/232/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: Unexpected keyword 'default' (1:6)" + "SyntaxError: Unexpected keyword 'default'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json index 115652eea1..45702dde61 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:20)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:20)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":15,"end":32,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":32}}, + "extra": { + "parenthesized": true, + "parenStart": 14 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -44,10 +48,6 @@ "type": "Identifier", "start":29,"end":32,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":32},"identifierName":"obj"}, "name": "obj" - }, - "extra": { - "parenthesized": true, - "parenStart": 14 } } } @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json index 5521e0e9a3..b09ddd2ba8 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:20)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:20)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":15,"end":37,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":37}}, + "extra": { + "parenthesized": true, + "parenStart": 14 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -44,10 +48,6 @@ "type": "Identifier", "start":34,"end":37,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":37},"identifierName":"obj"}, "name": "obj" - }, - "extra": { - "parenthesized": true, - "parenStart": 14 } } } @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/235/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/235/output.json index ae24a82b74..b9bedf73e7 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/235/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/235/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/236/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/236/output.json index 70e5c2df0d..9f2f816444 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/236/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/236/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: for-of loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-of' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/242/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/242/output.json index cca401d0d1..2c169917e7 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/242/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/242/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:15)", - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:15)", + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/243/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/243/output.json index 8e8d8419af..39a48ce279 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/243/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/243/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:14)" + "SyntaxError: Binding 'eval' in strict mode. (1:14)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/244/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/244/output.json index 5a18ea14d8..35d22ba742 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/244/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/244/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:14)" + "SyntaxError: Binding 'arguments' in strict mode. (1:14)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/245/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/245/output.json index c5a150d343..d0530400d0 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/245/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/245/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/246/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/246/output.json index 402704e9de..60534b0002 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/246/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/246/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:15)" + "SyntaxError: Binding 'arguments' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/247/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/247/output.json index db4f4a90fe..00536f4283 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/247/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/247/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -63,11 +63,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/248/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/248/output.json index e552560189..cba6699ec1 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/248/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/248/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Argument name clash (1:18)" + "SyntaxError: Argument name clash. (1:18)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/249/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/249/output.json index 70812a59cc..8f898cf7a2 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/249/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/249/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:21)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:21)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/251/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/251/output.json index 6b624a3ee4..2fdc8e15fe 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/251/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/251/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (1:1)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/252/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/252/output.json index 06d87dffa4..a6277b918c 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/252/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/252/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (1:1)", - "SyntaxError: Binding invalid left-hand side in function parameter list (1:5)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:1)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/263/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/263/options.json index 2b34d4c1e1..70e37125f5 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/263/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/263/options.json @@ -1,3 +1,3 @@ { - "throws": "A class name is required (1:6)" -} + "throws": "A class name is required. (1:6)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/264/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/264/options.json index 5162185002..bbcc148f2a 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/264/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/264/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated template (1:1)" -} + "throws": "Unterminated template. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/277/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/277/options.json index 2e1b1cc3aa..8c60527068 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/277/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/277/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:18)" -} + "throws": "Rest element must be last element. (1:18)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/280/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/280/output.json index bdb2864372..459d69dd1c 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/280/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/280/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Argument name clash (1:30)" + "SyntaxError: Argument name clash. (1:30)" ], "program": { "type": "Program", @@ -33,6 +33,9 @@ { "type": "ObjectProperty", "start":30,"end":31,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":31}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -45,9 +48,6 @@ "type": "Identifier", "start":30,"end":31,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":31},"identifierName":"a"}, "name": "a" - }, - "extra": { - "shorthand": true } } ] @@ -68,11 +68,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/281/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/281/output.json index f2543aba97..202c66fd71 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/281/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/281/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":56}}, "errors": [ - "SyntaxError: Argument name clash (1:47)" + "SyntaxError: Argument name clash. (1:47)" ], "program": { "type": "Program", @@ -43,6 +43,9 @@ { "type": "ObjectProperty", "start":32,"end":33,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":33}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -55,9 +58,6 @@ "type": "Identifier", "start":32,"end":33,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":33},"identifierName":"a"}, "name": "a" - }, - "extra": { - "shorthand": true } } ] @@ -91,6 +91,9 @@ { "type": "ObjectProperty", "start":47,"end":48,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":48}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -103,9 +106,6 @@ "type": "Identifier", "start":47,"end":48,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":48},"identifierName":"a"}, "name": "a" - }, - "extra": { - "shorthand": true } } ] @@ -131,11 +131,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/283/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/283/options.json index daa827f45c..391497d6bd 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/283/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/283/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:5)" -} + "throws": "Rest element must be last element. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/284/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/284/output.json index dba83d09de..0ff35d7ffd 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/284/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/284/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in array destructuring pattern (1:3)" + "SyntaxError: Binding invalid left-hand side in array destructuring pattern. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/289/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/289/output.json index 38f67c2463..fd19040ec7 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/289/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/289/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:5)" + "SyntaxError: Binding 'eval' in strict mode. (1:5)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":30,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":30}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectMethod", @@ -49,21 +53,17 @@ "value": { "type": "DirectiveLiteral", "start":13,"end":25,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":25}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/290/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/290/output.json index 2eb9655675..576ab926a3 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/290/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/290/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:23)" + "SyntaxError: Invalid escape sequence in template. (1:23)" ], "program": { "type": "Program", @@ -53,11 +53,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/291/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/291/output.json index c87a88a757..7adba9d695 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/291/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/291/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: 'import' and 'export' may only appear at the top level (1:7)", + "SyntaxError: 'import' and 'export' may only appear at the top level. (1:7)", "SyntaxError: 'import' and 'export' may appear only with 'sourceType: \"module\"' (1:7)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/296/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/296/output.json index 8515329a04..657451b675 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/296/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/296/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/297/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/297/output.json index 16f6411a56..242bb03d55 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/297/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/297/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:1)" + "SyntaxError: Binding 'eval' in strict mode. (1:1)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":12,"end":24,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":24}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/298/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/298/output.json index 86c9ce2155..8fed881cf7 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/298/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/298/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Object pattern can't contain getter or setter (1:7)" + "SyntaxError: Object pattern can't contain getter or setter. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/324/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/324/output.json index 95055f68cb..11ec4c55d6 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/324/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/324/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Complex binding patterns require an initialization value (1:7)" + "SyntaxError: 'Complex binding patterns' require an initialization value. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/325/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/325/output.json index 357a7e282e..a0786140de 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/325/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/325/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Complex binding patterns require an initialization value (1:7)" + "SyntaxError: 'Complex binding patterns' require an initialization value. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/326/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/326/options.json index 1c52234e73..ea2bbc40d5 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/326/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/326/options.json @@ -1,3 +1,3 @@ { - "throws": "Unexpected character '𖫵' (1:5)" -} + "throws": "Unexpected character '𖫵'. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/327/options.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/327/options.json index d7f3878c90..9ed1109e6b 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/327/options.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/327/options.json @@ -1,3 +1,3 @@ { - "throws": "Unexpected character '𫠞' (1:4)" -} + "throws": "Unexpected character '𫠞'. (1:4)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/328/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/328/output.json index 71a9cb4c65..bdbad128f1 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/328/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/328/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Missing semicolon (1:10)" + "SyntaxError: Missing semicolon. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/329/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/329/output.json index 7e613e65e9..7b2b380b04 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/329/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/329/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Lexical declaration cannot appear in a single-statement context (1:9)" + "SyntaxError: Lexical declaration cannot appear in a single-statement context. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/332/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/332/output.json index c604d5892a..f174e19715 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/332/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/332/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:18)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:18)" ], "program": { "type": "Program", @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/334/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/334/output.json index 56ed13d09f..563333c577 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/334/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/334/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:4)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/339/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/339/output.json index 0f3359c665..217b5aadf9 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/339/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/339/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/344/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/344/output.json index 7cde5ed762..655bd6b7da 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/344/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/344/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: super is only allowed in object methods and classes (1:0)", - "SyntaxError: super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]) (1:0)" + "SyntaxError: 'super' is only allowed in object methods and classes. (1:0)", + "SyntaxError: 'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]). (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/347/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/347/output.json index 875ae6923b..640b9ec942 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/347/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/347/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: setter must have exactly one formal parameter (1:10)" + "SyntaxError: A 'set' accesor must have exactly one formal parameter. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/348/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/348/output.json index e976347b71..16b020830e 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/348/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/348/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:17)" + "SyntaxError: Redefinition of __proto__ property. (1:17)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":31,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":31}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectProperty", @@ -59,11 +63,7 @@ "value": 2 } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/349/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/349/output.json index f3676a82d6..822c188c28 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/349/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/349/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:19)" + "SyntaxError: Redefinition of __proto__ property. (1:19)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":33,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":33}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectProperty", @@ -63,11 +67,7 @@ "value": 2 } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/357/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/357/output.json index ba52d9ef6d..1d06dc3c20 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/357/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/357/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Unexpected reserved word 'await' (1:0)" + "SyntaxError: Unexpected reserved word 'await'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/359/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/359/output.json index a178730ecf..dcc0372387 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/359/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/359/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Unexpected reserved word 'await' (1:6)" + "SyntaxError: Unexpected reserved word 'await'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/361/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/361/output.json index f36b098947..38cb64a143 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/361/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/361/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Unexpected reserved word 'await' (1:8)" + "SyntaxError: Unexpected reserved word 'await'. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/363/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/363/output.json index 0c3cf49c04..33eb4cdaeb 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/363/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/363/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Unexpected reserved word 'await' (1:15)" + "SyntaxError: Unexpected reserved word 'await'. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/365/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/365/output.json index 23b41eb517..22732ae45a 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/365/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/365/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected reserved word 'await' (1:9)" + "SyntaxError: Unexpected reserved word 'await'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/367/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/367/output.json index 5473a1cc88..8395dc8c7d 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/367/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/367/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Unexpected reserved word 'await' (1:6)" + "SyntaxError: Unexpected reserved word 'await'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/368/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/368/output.json index 600dd2bbb9..f3fe7929ce 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/368/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/368/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:0)" + "SyntaxError: Unexpected reserved word 'enum'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/369/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/369/output.json index 5dcad34468..72d7958362 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/369/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/369/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:0)" + "SyntaxError: Unexpected reserved word 'enum'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/37/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/37/output.json index 58ec7c2475..72b30659a5 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/37/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/37/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Binding member expression (1:2)" + "SyntaxError: Binding member expression. (1:2)" ], "program": { "type": "Program", @@ -32,12 +32,12 @@ "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3},"identifierName":"a"}, "name": "a" }, + "computed": false, "property": { "type": "Identifier", "start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"a"}, "name": "a" - }, - "computed": false + } } ] } diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/370/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/370/output.json index d702eecd62..b02c959fc1 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/370/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/370/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:6)" + "SyntaxError: Unexpected reserved word 'enum'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/371/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/371/output.json index 4333b93e58..6237ee1e98 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/371/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/371/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:6)" + "SyntaxError: Unexpected reserved word 'enum'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/372/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/372/output.json index 6521ee477c..61c6bc52d5 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/372/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/372/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:8)" + "SyntaxError: Unexpected reserved word 'enum'. (1:8)" ], "program": { "type": "Program", @@ -24,6 +24,9 @@ { "type": "ObjectProperty", "start":8,"end":12,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":12}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,9 +39,6 @@ "type": "Identifier", "start":8,"end":12,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":12},"identifierName":"enum"}, "name": "enum" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/373/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/373/output.json index dfeea9b4cd..c62b02696f 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/373/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/373/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:8)" + "SyntaxError: Unexpected reserved word 'enum'. (1:8)" ], "program": { "type": "Program", @@ -24,6 +24,9 @@ { "type": "ObjectProperty", "start":8,"end":12,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":12}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,9 +39,6 @@ "type": "Identifier", "start":8,"end":12,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":12},"identifierName":"enum"}, "name": "enum" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/374/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/374/output.json index 19654730cb..4dfbf4c880 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/374/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/374/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:15)" + "SyntaxError: Unexpected reserved word 'enum'. (1:15)" ], "program": { "type": "Program", @@ -28,6 +28,9 @@ { "type": "ObjectProperty", "start":15,"end":19,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":19}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -40,9 +43,6 @@ "type": "Identifier", "start":15,"end":19,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":19},"identifierName":"enum"}, "name": "enum" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/375/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/375/output.json index f01eb7211d..2a8a6c47c5 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/375/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/375/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:15)" + "SyntaxError: Unexpected reserved word 'enum'. (1:15)" ], "program": { "type": "Program", @@ -28,6 +28,9 @@ { "type": "ObjectProperty", "start":15,"end":19,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":19}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -40,9 +43,6 @@ "type": "Identifier", "start":15,"end":19,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":19},"identifierName":"enum"}, "name": "enum" - }, - "extra": { - "shorthand": true } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/376/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/376/output.json index 322f8bc8c7..c8f0ca3f04 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/376/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/376/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:9)" + "SyntaxError: Unexpected reserved word 'enum'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/377/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/377/output.json index 4b207d606d..e4d4bb0fbe 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/377/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/377/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:9)" + "SyntaxError: Unexpected reserved word 'enum'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/378/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/378/output.json index c7c70afe77..f95440b91b 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/378/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/378/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:6)" + "SyntaxError: Unexpected reserved word 'enum'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/379/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/379/output.json index 168f8d9cc0..5add414fc0 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/379/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/379/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:6)" + "SyntaxError: Unexpected reserved word 'enum'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/395/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/395/output.json index 58ec7c2475..72b30659a5 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/395/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/395/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Binding member expression (1:2)" + "SyntaxError: Binding member expression. (1:2)" ], "program": { "type": "Program", @@ -32,12 +32,12 @@ "start":2,"end":3,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":3},"identifierName":"a"}, "name": "a" }, + "computed": false, "property": { "type": "Identifier", "start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"a"}, "name": "a" - }, - "computed": false + } } ] } diff --git a/packages/babel-parser/test/fixtures/es2015/yield/function-name-function-declaration-inside-generator/output.json b/packages/babel-parser/test/fixtures/es2015/yield/function-name-function-declaration-inside-generator/output.json index ced2dbfb67..10d76f56d8 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/function-name-function-declaration-inside-generator/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/function-name-function-declaration-inside-generator/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (2:11)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (2:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/function-name-generator-expression/output.json b/packages/babel-parser/test/fixtures/es2015/yield/function-name-generator-expression/output.json index 0026ac0e93..1f7662c711 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/function-name-generator-expression/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/function-name-generator-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:11)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict-body/output.json b/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict-body/output.json index 8b8e3b1ff8..fd3cfcac38 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict-body/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict-body/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Binding 'yield' in strict mode (1:9)" + "SyntaxError: Binding 'yield' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict/output.json b/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict/output.json index bd1a026701..42b9092c1a 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/function-name-strict/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":19}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (2:9)" + "SyntaxError: Unexpected reserved word 'yield'. (2:9)" ], "program": { "type": "Program", @@ -36,11 +36,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/yield/in-global-scope/output.json b/packages/babel-parser/test/fixtures/es2015/yield/in-global-scope/output.json index 2a5530c8fc..7ae9d38804 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/in-global-scope/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/in-global-scope/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Missing semicolon (1:5)" + "SyntaxError: Missing semicolon. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/in-plain-function/output.json b/packages/babel-parser/test/fixtures/es2015/yield/in-plain-function/output.json index 45281e703a..fb03bb79b2 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/in-plain-function/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/in-plain-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Missing semicolon (1:20)" + "SyntaxError: Missing semicolon. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-1/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-1/output.json index 77197bbbb6..62e3c4be4c 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-1/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:7)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-2/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-2/output.json index b6212ca370..53b076d984 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-2/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:15)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-3/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-3/output.json index 92abf570fe..7fa1c684e9 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-3/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:7)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-4/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-4/output.json index a9f7f41d17..a012426f5d 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-4/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:17)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-5/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-5/output.json index 8b2983892b..8bb05b3784 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-5/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-5/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:8)", - "SyntaxError: Binding invalid left-hand side in function parameter list (2:8)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:8)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-6/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-6/output.json index 8c51b841ee..9dfb9b4ea9 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-6/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-6/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:8)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator-method/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator-method/output.json index 098f7106d0..a1df12479b 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator-method/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (1:15)" + "SyntaxError: Yield expression is not allowed in formal parameters. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator/output.json index bc481c3d02..c530382669 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-generator/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (1:17)" + "SyntaxError: Yield expression is not allowed in formal parameters. (1:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-strict/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-strict/output.json index edd07f81cc..c80b95aa82 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-strict/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-default-strict/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":25}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (2:16)" + "SyntaxError: Unexpected reserved word 'yield'. (2:16)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-1/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-1/output.json index f84aed5d2e..1e8a177591 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-1/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-1/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:3)", - "SyntaxError: Binding invalid left-hand side in function parameter list (2:3)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:3)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-2/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-2/output.json index 0599a5ca99..92ea4d52a9 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-2/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-2/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:3)", - "SyntaxError: Binding invalid left-hand side in function parameter list (2:3)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:3)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-3/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-3/output.json index 9487db4a58..d5289ad2ff 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-3/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-arrow-inside-generator-3/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (2:9)", - "SyntaxError: Binding invalid left-hand side in function parameter list (2:9)" + "SyntaxError: Yield expression is not allowed in formal parameters. (2:9)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator-method/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator-method/output.json index 94529c93e1..dbd2ad8bb6 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator-method/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:11)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:11)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":22,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":22}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectMethod", @@ -45,11 +49,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator/output.json index e26adaef5c..1b93417cb3 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-generator/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:13)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict-body/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict-body/output.json index a5d721d8ec..e62c0c6f30 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict-body/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict-body/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Binding 'yield' in strict mode (1:12)" + "SyntaxError: Binding 'yield' in strict mode. (1:12)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":21,"end":33,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":33}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict/output.json b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict/output.json index e6116f716d..9c8fcbc476 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":21}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (2:12)" + "SyntaxError: Unexpected reserved word 'yield'. (2:12)" ], "program": { "type": "Program", @@ -42,11 +42,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2015/yield/yield-star-parameter-default-inside-generator/output.json b/packages/babel-parser/test/fixtures/es2015/yield/yield-star-parameter-default-inside-generator/output.json index 180112bb93..36f203d04e 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/yield-star-parameter-default-inside-generator/output.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/yield-star-parameter-default-inside-generator/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (1:17)", - "SyntaxError: Yield expression is not allowed in formal parameters (1:24)" + "SyntaxError: Yield expression is not allowed in formal parameters. (1:17)", + "SyntaxError: Yield expression is not allowed in formal parameters. (1:24)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern-default/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern-default/output.json index d034afbc9b..6a5e1e7dc3 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern-default/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern-default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -58,11 +58,11 @@ "value": { "type": "DirectiveLiteral", "start":42,"end":54,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern/output.json index 35fd2a0adb..4c980e3e7d 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -49,11 +49,11 @@ "value": { "type": "DirectiveLiteral", "start":37,"end":49,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/arrow-function/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/arrow-function/output.json index e10dbf8aa2..267844b650 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:8)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:8)" ], "program": { "type": "Program", @@ -55,11 +55,11 @@ "value": { "type": "DirectiveLiteral", "start":30,"end":42,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-arrow-function/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-arrow-function/output.json index 2b90608b4c..0b4fa77f29 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:8)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:8)" ], "program": { "type": "Program", @@ -55,11 +55,11 @@ "value": { "type": "DirectiveLiteral", "start":36,"end":48,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-function/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-function/output.json index 7e82b95fea..30e5e501a7 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-function/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/async-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":35,"end":47,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/default/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/default/output.json index f07a72ed5d..b9fe0aeb25 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/default/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":29,"end":41,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-function/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-function/output.json index a75e2062ef..6664283642 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-function/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":30,"end":42,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-method/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-method/output.json index 2838eba94d..bd122e3c98 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-method/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":2}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (2:5)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (2:5)" ], "program": { "type": "Program", @@ -67,11 +67,11 @@ "value": { "type": "DirectiveLiteral", "start":38,"end":50,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":16}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/method/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/method/output.json index 496683da23..ddd14f6955 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/method/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":2}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (2:3)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (2:3)" ], "program": { "type": "Program", @@ -67,11 +67,11 @@ "value": { "type": "DirectiveLiteral", "start":36,"end":48,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":16}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern-default/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern-default/output.json index ce4565e35a..44c366ac4d 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern-default/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern-default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -31,6 +31,9 @@ { "type": "ObjectProperty", "start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -43,14 +46,14 @@ "type": "Identifier", "start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20},"identifierName":"option1"}, "name": "option1" - }, - "extra": { - "shorthand": true } }, { "type": "ObjectProperty", "start":22,"end":29,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":29}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -63,9 +66,6 @@ "type": "Identifier", "start":22,"end":29,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":29},"identifierName":"option2"}, "name": "option2" - }, - "extra": { - "shorthand": true } } ] @@ -88,11 +88,11 @@ "value": { "type": "DirectiveLiteral", "start":42,"end":54,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern/output.json index c51370c9d6..5e2c92a1ad 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -28,6 +28,9 @@ { "type": "ObjectProperty", "start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -40,14 +43,14 @@ "type": "Identifier", "start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20},"identifierName":"option1"}, "name": "option1" - }, - "extra": { - "shorthand": true } }, { "type": "ObjectProperty", "start":22,"end":29,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":29}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -60,9 +63,6 @@ "type": "Identifier", "start":22,"end":29,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":29},"identifierName":"option2"}, "name": "option2" - }, - "extra": { - "shorthand": true } } ] @@ -79,11 +79,11 @@ "value": { "type": "DirectiveLiteral", "start":37,"end":49,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/rest/output.json b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/rest/output.json index 6287e33952..fad417168b 100644 --- a/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/rest/output.json +++ b/packages/babel-parser/test/fixtures/es2016/simple-parameter-list/rest/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list (1:0)" + "SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)" ], "program": { "type": "Program", @@ -42,11 +42,11 @@ "value": { "type": "DirectiveLiteral", "start":27,"end":39,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":14}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested-2/output.json b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested-2/output.json index 690e665a2c..2128d0bb70 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested-2/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:9)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested/output.json b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested/output.json index e2758e5bab..45e050fa07 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-array-pattern-nested/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:11)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-identifier/output.json b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-identifier/output.json index 984ab4dbde..cda35a9ea0 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-identifier/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-identifier/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:18)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-member-expression/output.json b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-member-expression/output.json index 9afdf9f5fa..3619f0e23d 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-member-expression/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-member-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}}, "errors": [ - "SyntaxError: Binding member expression (1:9)" + "SyntaxError: Binding member expression. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-pattern/output.json b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-pattern/output.json index 2113ddb5a8..5b69a068d2 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-pattern/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:19)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-array/output.json b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-array/output.json index 0d501cde26..753ce2f874 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-array/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-array/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:22)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-object/output.json b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-object/output.json index 66f60ce4f6..e7bb475db2 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-object/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-object/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:22)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/2/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/2/output.json index 78391ab5a0..1119a9c3cf 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/2/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: await* has been removed from the async functions proposal. Use Promise.all() instead. (2:2)" + "SyntaxError: 'await*' has been removed from the async functions proposal. Use Promise.all() instead. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/9/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/9/output.json index 27d691134e..f6547d7dd2 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/9/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/9/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (1:24)" + "SyntaxError: 'await' is only allowed within async functions. (1:24)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/allow-await-outside-function-throw/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/allow-await-outside-function-throw/output.json index 8f13d165a4..53172c32fe 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/allow-await-outside-function-throw/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/allow-await-outside-function-throw/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (2:9)" + "SyntaxError: 'await' is only allowed within async functions. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/async-await-as-arrow-binding-identifier/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/async-await-as-arrow-binding-identifier/output.json index 09b554179d..c5e8a96d16 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/async-await-as-arrow-binding-identifier/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/async-await-as-arrow-binding-identifier/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside an async function (1:6)" + "SyntaxError: Can not use 'await' as identifier inside an async function. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-async-function-expression-name/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-async-function-expression-name/output.json index db893c1726..1db7ecbfb9 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-async-function-expression-name/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-async-function-expression-name/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside an async function (1:16)" + "SyntaxError: Can not use 'await' as identifier inside an async function. (1:16)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":26,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":26}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":16,"end":21,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":21},"identifierName":"await"}, @@ -29,10 +33,6 @@ "start":24,"end":26,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":26}}, "body": [], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-binding-inside-arrow-params-inside-async-arrow-params/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-binding-inside-arrow-params-inside-async-arrow-params/output.json index eda5cd44db..4dee66c3f3 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-binding-inside-arrow-params-inside-async-arrow-params/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-binding-inside-arrow-params-inside-async-arrow-params/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside an async function (1:14)" + "SyntaxError: Can not use 'await' as identifier inside an async function. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-function-declaration-name-inside-async-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-function-declaration-name-inside-async-function/output.json index 1f579129c7..5292cb4420 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-function-declaration-name-inside-async-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-function-declaration-name-inside-async-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside an async function (2:11)" + "SyntaxError: Can not use 'await' as identifier inside an async function. (2:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arguments-of-async-call-inside-parameters-of-async-arrow-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arguments-of-async-call-inside-parameters-of-async-arrow-function/output.json index 9f22c79e05..7f8ae424e1 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arguments-of-async-call-inside-parameters-of-async-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arguments-of-async-call-inside-parameters-of-async-arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: await is not allowed in async function parameters (2:23)" + "SyntaxError: 'await' is not allowed in async function parameters. (2:23)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arrow-expression-disallowed/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arrow-expression-disallowed/output.json index 506ce33b90..bef6713894 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arrow-expression-disallowed/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arrow-expression-disallowed/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (1:8)" + "SyntaxError: 'await' is only allowed within async functions. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-async-arrow-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-async-arrow-function/output.json index 287f8eae44..c770316cbe 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-async-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-async-arrow-function/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (1:11)", - "SyntaxError: await is not allowed in async function parameters (1:11)" + "SyntaxError: 'await' is only allowed within async functions. (1:11)", + "SyntaxError: 'await' is not allowed in async function parameters. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-arrow-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-arrow-function/output.json index 9f925a342f..7a891987aa 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: await is not allowed in async function parameters (2:7)" + "SyntaxError: 'await' is not allowed in async function parameters. (2:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-async-arrow-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-async-arrow-function/output.json index e24dce562a..7b67988770 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-async-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-async-arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: await is not allowed in async function parameters (2:13)" + "SyntaxError: 'await' is not allowed in async function parameters. (2:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-function/output.json index 444930868e..88e1bc9f54 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-nested-function/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (2:19)", - "SyntaxError: await is not allowed in async function parameters (2:19)" + "SyntaxError: 'await' is only allowed within async functions. (2:19)", + "SyntaxError: 'await' is not allowed in async function parameters. (2:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters/output.json index fcf89fb5da..d53424d1d7 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: await is not allowed in async function parameters (1:22)" + "SyntaxError: 'await' is not allowed in async function parameters. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-await-with-object-exp-in-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-await-with-object-exp-in-function/output.json index cd71c7cea3..cd729a260b 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-await-with-object-exp-in-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-await-with-object-exp-in-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (2:2)" + "SyntaxError: 'await' is only allowed within async functions. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-await/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-await/output.json index 7a89909179..21b6c7bcf5 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-await/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-await/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside an async function (1:20)", - "SyntaxError: Missing semicolon (1:30)" + "SyntaxError: Can not use 'await' as identifier inside an async function. (1:20)", + "SyntaxError: Missing semicolon. (1:30)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-export-dflt-async-function/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-export-dflt-async-function/output.json index 93d68bf0ca..00903880bc 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-export-dflt-async-function/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-export-dflt-async-function/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: Missing semicolon (1:25)", - "SyntaxError: 'await' is only allowed within async functions (1:41)" + "SyntaxError: Missing semicolon. (1:25)", + "SyntaxError: 'await' is only allowed within async functions. (1:41)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-sequence-arrow/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-sequence-arrow/output.json index 66a170b05a..54158dd70d 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-sequence-arrow/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-escape-sequence-arrow/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Missing semicolon (1:10)", - "SyntaxError: 'await' is only allowed within async functions (1:18)" + "SyntaxError: Missing semicolon. (1:10)", + "SyntaxError: 'await' is only allowed within async functions. (1:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-inside-loop/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-inside-loop/output.json index 139be62a2f..9183f133d6 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-inside-loop/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-inside-loop/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Async functions can only be declared at the top level or inside a block (1:10)" + "SyntaxError: Async functions can only be declared at the top level or inside a block. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-parens-async-func/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-parens-async-func/output.json index 456b35386a..06982744a5 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-parens-async-func/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/invalid-parens-async-func/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Missing semicolon (1:7)" + "SyntaxError: Missing semicolon. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/multiple-await-in-async-arrow-params/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/multiple-await-in-async-arrow-params/output.json index a110b81601..2a05490d13 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/multiple-await-in-async-arrow-params/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/multiple-await-in-async-arrow-params/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside an async function (1:15)", - "SyntaxError: Can not use 'await' as identifier inside an async function (1:30)" + "SyntaxError: Can not use 'await' as identifier inside an async function. (1:15)", + "SyntaxError: Can not use 'await' as identifier inside an async function. (1:30)" ], "program": { "type": "Program", @@ -124,4 +124,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/newline-before-arrow/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/newline-before-arrow/output.json index 19ade021f4..9a441fbf4d 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/newline-before-arrow/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/newline-before-arrow/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":4}}, "errors": [ - "SyntaxError: No line break is allowed before '=>' (2:2)" + "SyntaxError: No line break is allowed before '=>'. (2:2)" ], "program": { "type": "Program", @@ -36,4 +36,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/no-constructor/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/no-constructor/output.json index abbe3abb26..9e82c1df4b 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/no-constructor/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/no-constructor/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Constructor can't be an async function (2:8)" + "SyntaxError: Constructor can't be an async function. (2:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/async-functions/params-invalid-rest-trailing-comma/output.json b/packages/babel-parser/test/fixtures/es2017/async-functions/params-invalid-rest-trailing-comma/output.json index 630b3e12eb..dcda7efa36 100644 --- a/packages/babel-parser/test/fixtures/es2017/async-functions/params-invalid-rest-trailing-comma/output.json +++ b/packages/babel-parser/test/fixtures/es2017/async-functions/params-invalid-rest-trailing-comma/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Unexpected trailing comma after rest element (1:11)" + "SyntaxError: Unexpected trailing comma after rest element. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2017/trailing-function-commas/5/output.json b/packages/babel-parser/test/fixtures/es2017/trailing-function-commas/5/output.json index 8b4d3abd36..a9717bd23e 100644 --- a/packages/babel-parser/test/fixtures/es2017/trailing-function-commas/5/output.json +++ b/packages/babel-parser/test/fixtures/es2017/trailing-function-commas/5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Unexpected token ',' (1:5)" + "SyntaxError: Unexpected token ','. (1:5)" ], "program": { "type": "Program", @@ -16,14 +16,14 @@ "expression": { "type": "CallExpression", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, + "extra": { + "trailingComma": 4 + }, "callee": { "type": "Identifier", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3},"identifierName":"log"}, "name": "log" }, - "extra": { - "trailingComma": 4 - }, "arguments": [ null ] diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/11/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/11/output.json index 9107e6623d..0d9f06020d 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/11/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/11/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":35}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:23)", + "SyntaxError: Identifier 'foo' has already been declared. (2:23)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:23)" ], "program": { @@ -61,6 +61,9 @@ { "type": "ObjectProperty", "start":37,"end":40,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -73,9 +76,6 @@ "type": "Identifier", "start":37,"end":40,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18},"identifierName":"bar"}, "name": "bar" - }, - "extra": { - "shorthand": true } }, { diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/12/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/12/output.json index ff6a186270..cc18e28240 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/12/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/12/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":21}}, "errors": [ - "SyntaxError: Identifier 'bar' has already been declared (2:13)", + "SyntaxError: Identifier 'bar' has already been declared. (2:13)", "SyntaxError: `bar` has already been exported. Exported identifiers must be unique. (2:13)" ], "program": { @@ -30,6 +30,9 @@ { "type": "ObjectProperty", "start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -42,9 +45,6 @@ "type": "Identifier", "start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18},"identifierName":"foo"}, "name": "foo" - }, - "extra": { - "shorthand": true } }, { diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/13/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/13/output.json index 4488d18649..122a80e437 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/13/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/13/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":66,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":44}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:30)", + "SyntaxError: Identifier 'foo' has already been declared. (2:30)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:30)" ], "program": { @@ -76,6 +76,9 @@ { "type": "ObjectProperty", "start":44,"end":47,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -88,9 +91,6 @@ "type": "Identifier", "start":44,"end":47,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25},"identifierName":"baz"}, "name": "baz" - }, - "extra": { - "shorthand": true } }, { diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/14/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/14/output.json index e3429dd557..922118de7a 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/14/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/14/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":64,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":42}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:29)", + "SyntaxError: Identifier 'foo' has already been declared. (2:29)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:29)" ], "program": { @@ -70,6 +70,9 @@ { "type": "ObjectProperty", "start":43,"end":46,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":24}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -82,9 +85,6 @@ "type": "Identifier", "start":43,"end":46,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":24},"identifierName":"baz"}, "name": "baz" - }, - "extra": { - "shorthand": true } }, { diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/15/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/15/output.json index ebce9c2259..2d3704afc9 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/15/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/15/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":66,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":44}}, "errors": [ - "SyntaxError: Identifier 'foo' has already been declared (2:30)", + "SyntaxError: Identifier 'foo' has already been declared. (2:30)", "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:30)" ], "program": { @@ -74,6 +74,9 @@ { "type": "ObjectProperty", "start":44,"end":47,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -86,9 +89,6 @@ "type": "Identifier", "start":44,"end":47,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25},"identifierName":"baz"}, "name": "baz" - }, - "extra": { - "shorthand": true } }, { diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/18/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/18/output.json index 5f904177a7..008f56a84b 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/18/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/18/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid rest operator's argument (1:5)" + "SyntaxError: Invalid rest operator's argument. (1:5)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":13,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":13}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -36,10 +40,6 @@ "type": "ObjectExpression", "start":11,"end":13,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":13}}, "properties": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/21/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/21/output.json index 53d79afbca..0147452386 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/21/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/21/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: Invalid rest operator's argument (1:5)" + "SyntaxError: Invalid rest operator's argument. (1:5)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":16,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":16}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -49,10 +53,6 @@ "type": "ObjectExpression", "start":14,"end":16,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":16}}, "properties": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/24/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/24/output.json index 95a5979a01..a6c57e547a 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/24/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/24/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid rest operator's argument (1:5)" + "SyntaxError: Invalid rest operator's argument. (1:5)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":13,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":13}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -36,10 +40,6 @@ "type": "ObjectExpression", "start":11,"end":13,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":13}}, "properties": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/7/options.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/7/options.json index b86f80dc4a..d2abaaa1d2 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/7/options.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/7/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:10)" -} + "throws": "Rest element must be last element. (1:10)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/8/output.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/8/output.json index 507c8b34b2..2643b6ca98 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/8/output.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/8/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Unexpected trailing comma after rest element (1:16)" + "SyntaxError: Unexpected trailing comma after rest element. (1:16)" ], "program": { "type": "Program", @@ -20,10 +20,16 @@ "id": { "type": "ObjectPattern", "start":4,"end":19,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":19}}, + "extra": { + "trailingComma": 16 + }, "properties": [ { "type": "ObjectProperty", "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -36,14 +42,14 @@ "type": "Identifier", "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"x"}, "name": "x" - }, - "extra": { - "shorthand": true } }, { "type": "ObjectProperty", "start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -56,9 +62,6 @@ "type": "Identifier", "start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"y"}, "name": "y" - }, - "extra": { - "shorthand": true } }, { @@ -70,10 +73,7 @@ "name": "z" } } - ], - "extra": { - "trailingComma": 16 - } + ] }, "init": { "type": "Identifier", diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/9/options.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/9/options.json index e9effa60cb..7d618d0fb2 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/9/options.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/9/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:13)" -} + "throws": "Rest element must be last element. (1:13)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-rest/options.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-rest/options.json index 935d087d7e..dfc19ace34 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-rest/options.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-rest/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:6)" -} + "throws": "Rest element must be last element. (1:6)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-for-in/options.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-for-in/options.json index b86f80dc4a..d2abaaa1d2 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-for-in/options.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-for-in/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:10)" -} + "throws": "Rest element must be last element. (1:10)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-nested/options.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-nested/options.json index 935d087d7e..dfc19ace34 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-nested/options.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-spread-nested/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:6)" -} + "throws": "Rest element must be last element. (1:6)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/expression-rest-not-last-invalid/options.json b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/expression-rest-not-last-invalid/options.json index b708967fd2..7153dafad0 100644 --- a/packages/babel-parser/test/fixtures/es2018/object-rest-spread/expression-rest-not-last-invalid/options.json +++ b/packages/babel-parser/test/fixtures/es2018/object-rest-spread/expression-rest-not-last-invalid/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:2)" -} + "throws": "Rest element must be last element. (1:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-decimal/output.json b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-decimal/output.json index 65fe5c762c..d17ec09be3 100644 --- a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-decimal/output.json +++ b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-decimal/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Invalid BigIntLiteral (1:0)" + "SyntaxError: Invalid BigIntLiteral. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-e/output.json b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-e/output.json index ece9adc5b9..5fc72c71fb 100644 --- a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-e/output.json +++ b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-e/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Invalid BigIntLiteral (1:0)" + "SyntaxError: Invalid BigIntLiteral. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-non-octal-decimal-int/output.json b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-non-octal-decimal-int/output.json index c7ff73f0e7..0adf4cbfba 100644 --- a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-non-octal-decimal-int/output.json +++ b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-non-octal-decimal-int/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Invalid BigIntLiteral (1:0)" + "SyntaxError: Invalid BigIntLiteral. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-octal-legacy/output.json b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-octal-legacy/output.json index 8f1e2836cd..e64846e6c7 100644 --- a/packages/babel-parser/test/fixtures/es2020/bigint/invalid-octal-legacy/output.json +++ b/packages/babel-parser/test/fixtures/es2020/bigint/invalid-octal-legacy/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid BigIntLiteral (1:0)" + "SyntaxError: Invalid BigIntLiteral. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/dynamic-import/direct-calls-only/output.json b/packages/babel-parser/test/fixtures/es2020/dynamic-import/direct-calls-only/output.json index 2a5318f72b..674300a4af 100644 --- a/packages/babel-parser/test/fixtures/es2020/dynamic-import/direct-calls-only/output.json +++ b/packages/babel-parser/test/fixtures/es2020/dynamic-import/direct-calls-only/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: The only valid meta property for import is import.meta (2:16)" + "SyntaxError: The only valid meta property for import is import.meta. (2:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-arguments-spread/output.json b/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-arguments-spread/output.json index 11c9e8f7db..f9875e9533 100644 --- a/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-arguments-spread/output.json +++ b/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-arguments-spread/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: ... is not allowed in import() (1:7)" + "SyntaxError: `...` is not allowed in `import()`. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-new/output.json b/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-new/output.json index 246d3d373c..f36c653dc6 100644 --- a/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-new/output.json +++ b/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-new/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Cannot use new with import(...) (1:4)" + "SyntaxError: Cannot use new with import(...). (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-trailing-comma/output.json b/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-trailing-comma/output.json index 6e5fa83656..1f818955c2 100644 --- a/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-trailing-comma/output.json +++ b/packages/babel-parser/test/fixtures/es2020/dynamic-import/invalid-trailing-comma/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Trailing comma is disallowed inside import(...) arguments (1:12)" + "SyntaxError: Trailing comma is disallowed inside import(...) arguments. (1:12)" ], "program": { "type": "Program", @@ -16,13 +16,13 @@ "expression": { "type": "CallExpression", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, + "extra": { + "trailingComma": 12 + }, "callee": { "type": "Import", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}} }, - "extra": { - "trailingComma": 12 - }, "arguments": [ { "type": "StringLiteral", diff --git a/packages/babel-parser/test/fixtures/es2020/dynamic-import/multiple-args/output.json b/packages/babel-parser/test/fixtures/es2020/dynamic-import/multiple-args/output.json index 0c67a4f67b..547e594400 100644 --- a/packages/babel-parser/test/fixtures/es2020/dynamic-import/multiple-args/output.json +++ b/packages/babel-parser/test/fixtures/es2020/dynamic-import/multiple-args/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: import() requires exactly one argument (1:0)" + "SyntaxError: `import()` requires exactly one argument. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/dynamic-import/no-args/output.json b/packages/babel-parser/test/fixtures/es2020/dynamic-import/no-args/output.json index fe2978c702..3455666fb9 100644 --- a/packages/babel-parser/test/fixtures/es2020/dynamic-import/no-args/output.json +++ b/packages/babel-parser/test/fixtures/es2020/dynamic-import/no-args/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: import() requires exactly one argument (1:0)" + "SyntaxError: `import()` requires exactly one argument. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/import-meta/no-other-prop-names/output.json b/packages/babel-parser/test/fixtures/es2020/import-meta/no-other-prop-names/output.json index c03b9e7046..d768827ed0 100644 --- a/packages/babel-parser/test/fixtures/es2020/import-meta/no-other-prop-names/output.json +++ b/packages/babel-parser/test/fixtures/es2020/import-meta/no-other-prop-names/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: The only valid meta property for import is import.meta (1:7)" + "SyntaxError: The only valid meta property for import is import.meta. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/import-meta/not-assignable/output.json b/packages/babel-parser/test/fixtures/es2020/import-meta/not-assignable/output.json index 5e1510e58f..784ab2d1b4 100644 --- a/packages/babel-parser/test/fixtures/es2020/import-meta/not-assignable/output.json +++ b/packages/babel-parser/test/fixtures/es2020/import-meta/not-assignable/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-and-nullish/options.json b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-and-nullish/options.json index 8b9f24dff5..f41119306e 100644 --- a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-and-nullish/options.json +++ b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-and-nullish/options.json @@ -1,4 +1,6 @@ { - "plugins": ["estree"], - "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:7)" -} + "plugins": [ + "estree" + ], + "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators. (1:7)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-and/options.json b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-and/options.json index 75afb6e1fe..0e2b52f72d 100644 --- a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-and/options.json +++ b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-and/options.json @@ -1,3 +1,3 @@ { - "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:7)" -} + "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators. (1:7)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-or/options.json b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-or/options.json index 9fed7e7926..0a3e471912 100644 --- a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-or/options.json +++ b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-or/options.json @@ -1,3 +1,3 @@ { - "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:12)" -} + "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators. (1:12)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-or-nullish/options.json b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-or-nullish/options.json index 8b9f24dff5..f41119306e 100644 --- a/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-or-nullish/options.json +++ b/packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-or-nullish/options.json @@ -1,4 +1,6 @@ { - "plugins": ["estree"], - "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:7)" -} + "plugins": [ + "estree" + ], + "throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators. (1:7)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2020/optional-chaining/class-contructor-call/output.json b/packages/babel-parser/test/fixtures/es2020/optional-chaining/class-contructor-call/output.json index c5497bf4eb..661de50918 100644 --- a/packages/babel-parser/test/fixtures/es2020/optional-chaining/class-contructor-call/output.json +++ b/packages/babel-parser/test/fixtures/es2020/optional-chaining/class-contructor-call/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: constructors in/after an Optional Chain are not allowed (1:10)" + "SyntaxError: Constructors in/after an Optional Chain are not allowed. (1:10)" ], "program": { "type": "Program", @@ -27,20 +27,20 @@ "start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"C"}, "name": "C" }, + "computed": false, "property": { "type": "Identifier", "start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8},"identifierName":"b"}, "name": "b" }, - "computed": false, "optional": true }, + "computed": false, "property": { "type": "Identifier", "start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"d"}, "name": "d" }, - "computed": false, "optional": false }, "arguments": [] diff --git a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-constructor/output.json b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-constructor/output.json index 5039bd06d9..8417ccf0b4 100644 --- a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-constructor/output.json +++ b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-constructor/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: constructors in/after an Optional Chain are not allowed (1:7)" + "SyntaxError: Constructors in/after an Optional Chain are not allowed. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property-class/output.json b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property-class/output.json index dc31af9de3..721b905ba7 100644 --- a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property-class/output.json +++ b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]) (3:15)" + "SyntaxError: 'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]). (3:15)" ], "program": { "type": "Program", @@ -52,12 +52,12 @@ "type": "Super", "start":33,"end":38,"loc":{"start":{"line":3,"column":15},"end":{"line":3,"column":20}} }, + "computed": false, "property": { "type": "Identifier", "start":40,"end":41,"loc":{"start":{"line":3,"column":22},"end":{"line":3,"column":23},"identifierName":"b"}, "name": "b" }, - "computed": false, "optional": true } } diff --git a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property/output.json b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property/output.json index 393e2fd745..f7df43f0a5 100644 --- a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property/output.json +++ b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-super-property/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]) (3:15)" + "SyntaxError: 'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]). (3:15)" ], "program": { "type": "Program", @@ -55,12 +55,12 @@ "type": "Super", "start":36,"end":41,"loc":{"start":{"line":3,"column":15},"end":{"line":3,"column":20}} }, + "computed": false, "property": { "type": "Identifier", "start":43,"end":44,"loc":{"start":{"line":3,"column":22},"end":{"line":3,"column":23},"identifierName":"c"}, "name": "c" }, - "computed": false, "optional": true } } diff --git a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-tagged-template-literals/output.json b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-tagged-template-literals/output.json index 344f3d26b6..618740e1fe 100644 --- a/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-tagged-template-literals/output.json +++ b/packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-tagged-template-literals/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Tagged Template Literals are not allowed in optionalChain (1:0)" + "SyntaxError: Tagged Template Literals are not allowed in optionalChain. (1:0)" ], "program": { "type": "Program", @@ -24,12 +24,12 @@ "start":0,"end":1,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":1},"identifierName":"a"}, "name": "a" }, + "computed": false, "property": { "type": "Identifier", "start":3,"end":4,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":4},"identifierName":"b"}, "name": "b" }, - "computed": false, "optional": true }, "quasi": { diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-0/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-0/output.json index f71e62cf63..1b3de6fd78 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-0/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-0/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:1)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-1/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-1/output.json index a685b94be0..366cedac44 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-1/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-10/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-10/output.json index c32319f375..181f449502 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-10/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-10/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-100/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-100/output.json index 7ee60b71ca..ffd351eb05 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-100/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-100/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-101/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-101/output.json index 242847410a..eba452df48 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-101/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-101/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-102/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-102/output.json index aedcced6b5..787c078762 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-102/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-102/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-103/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-103/output.json index 6fc9be0b38..643bf65930 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-103/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-103/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-104/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-104/output.json index fa1525dea3..12cd05d58c 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-104/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-104/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-105/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-105/output.json index 8c94785d66..73318e366c 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-105/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-105/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-106/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-106/output.json index 83b95a0906..6a05a7e365 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-106/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-106/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-107/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-107/output.json index fcf5f8cc4e..71052b871a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-107/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-107/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-108/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-108/output.json index fac7984d56..12f9f73bdd 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-108/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-108/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-109/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-109/output.json index 245a9416a8..c2985d1aea 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-109/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-109/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-11/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-11/output.json index 3ce69cd5a8..83d4698537 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-11/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-11/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-110/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-110/output.json index 1694c85af9..f700f4bfdc 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-110/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-110/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-111/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-111/output.json index e033ff3657..513e074fcb 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-111/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-111/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-112/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-112/output.json index 5aebc0f50b..9f5df90039 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-112/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-112/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-113/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-113/output.json index e8db639c56..b1018ffb9e 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-113/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-113/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-114/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-114/output.json index 9d692b713f..4e07464123 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-114/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-114/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-115/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-115/output.json index 0b12f49112..ea39218d6c 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-115/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-115/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-116/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-116/output.json index 2629abd0de..82113efbf5 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-116/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-116/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-117/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-117/output.json index f6817e0b22..c13983600e 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-117/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-117/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-118/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-118/output.json index 1a2378d0b0..721494c600 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-118/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-118/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-119/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-119/output.json index fce3fc7578..28c0cb4329 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-119/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-119/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-12/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-12/output.json index 6900ec7205..249938fd8a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-12/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-12/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-120/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-120/output.json index 987d9624eb..c28ea6da47 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-120/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-120/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-121/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-121/output.json index 6fd12b2edc..cb48d13ec9 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-121/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-121/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-122/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-122/output.json index 004e40f97b..0954b1fe92 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-122/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-122/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-123/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-123/output.json index 2fcbd10c80..f3fcc31237 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-123/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-123/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-124/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-124/output.json index cd4cd6ffeb..89e230aef1 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-124/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-124/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-125/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-125/output.json index a6ea0dbbc1..c1a4c0e47a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-125/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-125/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-126/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-126/output.json index 4e0a0023c3..edcc73de4d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-126/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-126/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-127/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-127/output.json index 01995ddd75..5c99ba7837 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-127/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-127/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-128/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-128/output.json index 58bb3e5dec..3797d39fe5 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-128/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-128/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-129/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-129/output.json index 54d3a1050e..0f3a0c41c7 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-129/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-129/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-13/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-13/output.json index ded88989d1..47a225c02b 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-13/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-13/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-130/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-130/output.json index 6eb72f7417..7f31e5ef9b 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-130/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-130/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-131/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-131/output.json index f977883820..3b024f7a15 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-131/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-131/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-132/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-132/output.json index bf350c9fd0..c560f30f23 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-132/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-132/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-133/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-133/output.json index e06df95011..94374d82c6 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-133/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-133/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-134/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-134/output.json index bb0df5540a..f81829ac74 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-134/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-134/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-135/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-135/output.json index 4484f2592a..90a55a002d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-135/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-135/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-136/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-136/output.json index 5b86c97767..8435224ca4 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-136/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-136/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-137/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-137/output.json index 0a7efd31a5..acefe9a907 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-137/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-137/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-138/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-138/output.json index 7e5e1b87de..0ab9799968 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-138/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-138/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-139/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-139/output.json index a904876ecc..7ef3c8ccfe 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-139/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-139/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-14/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-14/output.json index 9b87ecd61c..b56f4eb495 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-14/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-14/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-140/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-140/output.json index 09eda4f99d..9feecbfaf3 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-140/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-140/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-141/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-141/output.json index 1fa9b9b565..386fcb8901 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-141/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-141/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-142/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-142/output.json index ab2be9d065..816844e59b 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-142/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-142/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-143/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-143/output.json index 2f01f1cdfc..545403bf4f 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-143/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-143/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-144/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-144/output.json index 19996c619d..eb3d8572e4 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-144/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-144/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-145/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-145/output.json index 73d0352df2..bc5a8f3263 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-145/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-145/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-146/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-146/output.json index 26e13a1532..b3077e9a9d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-146/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-146/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-147/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-147/output.json index 21d200a0d6..d8ac9dce81 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-147/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-147/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-15/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-15/output.json index c0679de758..3007122061 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-15/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-15/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-16/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-16/output.json index 67f7f44633..13ae7cbab7 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-16/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-16/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-17/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-17/output.json index e641715002..6075127bf2 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-17/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-17/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-18/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-18/output.json index c9862c7c74..a849e9fa2a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-18/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-18/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-19/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-19/output.json index 59ef8dcfe7..b1a6ed21cd 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-19/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-19/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-2/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-2/output.json index 259a3f3a14..acb1c5f501 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-2/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-2/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-20/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-20/output.json index f83fa6ea3e..fafb53f0f3 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-20/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-20/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-21/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-21/output.json index 7390d0e73c..c17b666457 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-21/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-21/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-22/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-22/output.json index f3aadce6c7..1fc7013eb2 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-22/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-22/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-23/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-23/output.json index 482160a3f2..d0b3f7e56d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-23/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-23/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-25/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-25/output.json index ea8fc8c204..db33e48043 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-25/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-25/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: Expected number in radix 8 (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: Expected number in radix 8. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-26/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-26/output.json index 9a263fd785..067e49837d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-26/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-26/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-27/options.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-27/options.json index ee18527964..8ca0a88b10 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-27/options.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-27/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:2)" -} + "throws": "Identifier directly after number. (1:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-28/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-28/output.json index 4fa0a1810f..8eb9a3bc0a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-28/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-28/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:1)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-29/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-29/output.json index 0d67691d81..77cb93b117 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-29/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-29/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-3/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-3/output.json index 872895190f..419c2cca26 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-3/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-3/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:1)", - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:1)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-30/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-30/output.json index 1743eab00f..95f875d5f3 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-30/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-30/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-31/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-31/output.json index 836a76bd99..ef46a0ca05 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-31/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-31/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:1)", - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:1)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-32/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-32/output.json index e9cfbc456c..982dd6b143 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-32/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-32/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-33/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-33/output.json index 0e74e29fea..ee708019ba 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-33/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-33/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-34/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-34/output.json index 269b48e7fb..1d285af394 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-34/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-34/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-35/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-35/output.json index d9086f1000..46018a8e16 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-35/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-35/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-36/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-36/output.json index 12858208a0..050bff84cb 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-36/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-36/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-37/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-37/output.json index 2128458509..e24d687c8b 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-37/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-37/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-38/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-38/output.json index 195c69a6e0..bc55cd031d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-38/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-38/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-39/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-39/output.json index 98b20b22a3..814e941104 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-39/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-39/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-4/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-4/output.json index 96e6972816..3b6ce34b2d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-4/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-40/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-40/output.json index bae33528af..20833f1547 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-40/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-40/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-41/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-41/output.json index e08b976812..f6f272194f 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-41/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-41/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-42/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-42/output.json index 17b25f9fb3..8bbcb75247 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-42/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-42/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-43/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-43/output.json index 37fb1b9d90..5305b1b455 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-43/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-43/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-44/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-44/output.json index 0c576d51f4..e7c362896a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-44/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-44/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-45/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-45/output.json index f26f8dd544..25169cec7c 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-45/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-45/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-46/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-46/output.json index c721e17050..3016f43e8c 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-46/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-46/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-47/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-47/output.json index 32b05f9776..dcac1aefde 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-47/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-47/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-48/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-48/output.json index 370cad5f22..086e43c26f 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-48/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-48/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-49/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-49/output.json index 7302b58872..7804c3bb86 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-49/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-49/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-5/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-5/output.json index 104bab8bfb..2af98f935d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-5/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-50/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-50/output.json index 1696b72036..1ac5469534 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-50/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-50/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-51/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-51/output.json index 4a170306f9..192e6de6cd 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-51/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-51/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-52/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-52/output.json index ef36209f39..b5bf59d077 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-52/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-52/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:1)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-53/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-53/output.json index b594061053..258a23a014 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-53/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-53/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-54/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-54/output.json index a240786ccd..c9a11f0780 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-54/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-54/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-55/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-55/output.json index 327ca06461..8bf821246d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-55/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-55/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:1)", - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:1)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-56/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-56/output.json index a1f3a2f797..fa801a52f5 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-56/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-56/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-57/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-57/output.json index 5be8427a63..d41453e1d7 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-57/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-57/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-58/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-58/output.json index be53084784..b863883676 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-58/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-58/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-59/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-59/output.json index 8946a1d3df..1f512d5350 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-59/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-59/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-6/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-6/output.json index 47194a33cc..8f23341a71 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-6/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-6/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-60/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-60/output.json index 2fcf0f2e71..ddc30d3f9a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-60/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-60/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-61/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-61/output.json index 7b94176ac8..c6e5c897b6 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-61/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-61/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-62/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-62/output.json index 9ccb458bc2..67db435484 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-62/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-62/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-63/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-63/output.json index 270a3c6f12..d36a0ed626 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-63/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-63/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-64/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-64/output.json index f11b9f23a5..afbb9273bb 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-64/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-64/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-65/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-65/output.json index b115442a12..7b3166d458 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-65/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-65/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-66/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-66/output.json index 8460ef9ed9..446375db7c 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-66/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-66/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-67/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-67/output.json index af0c112309..ee2a94900a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-67/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-67/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-68/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-68/output.json index b4baab71f7..7570c57e65 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-68/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-68/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-69/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-69/output.json index 67b40a8158..d31613b5cf 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-69/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-69/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-7/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-7/output.json index d332a8378d..27775ba14e 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-7/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-7/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-70/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-70/output.json index 7e2e98b195..319404c81e 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-70/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-70/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-71/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-71/output.json index 1e72221130..046080cd4c 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-71/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-71/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-72/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-72/output.json index b6fc5e3e25..846aacc84a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-72/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-72/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-73/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-73/output.json index 87cbb9e74a..513d584b27 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-73/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-73/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-74/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-74/output.json index e13589825c..8746c680e3 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-74/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-74/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-75/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-75/output.json index 99aaeee036..b17c1efe92 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-75/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-75/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-76/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-76/output.json index 6a5210632f..73b3161c61 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-76/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-76/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-77/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-77/output.json index 3daf76e319..3aa9011fe9 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-77/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-77/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-78/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-78/output.json index 945775d56e..b5cf5c21d3 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-78/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-78/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-79/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-79/output.json index 961a9442c7..7de5fac89b 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-79/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-79/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:2)", - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:2)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-8/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-8/output.json index ac19c3b8fe..4382d4ff81 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-8/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-8/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-80/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-80/output.json index 5ac02a8104..906cd59934 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-80/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-80/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:4)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-81/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-81/output.json index f85156325d..eafd2ee027 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-81/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-81/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:5)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-82/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-82/output.json index 63db3421d8..60afde81c8 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-82/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-82/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-83/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-83/output.json index 34de6f8035..26cf0d1e78 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-83/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-83/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-84/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-84/output.json index bd892f5bef..c0fba49fac 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-84/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-84/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-85/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-85/output.json index 4ed7d8e9c0..a48816422e 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-85/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-85/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-86/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-86/output.json index 2038ff8d78..dd846e3ce2 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-86/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-86/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-87/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-87/output.json index 593809dbd3..6fcc8f5d8a 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-87/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-87/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-88/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-88/output.json index 67a557a8d3..6006ae433b 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-88/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-88/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-89/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-89/output.json index 8a9f3fe0cf..c7cb0259ce 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-89/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-89/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:4)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:4)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-9/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-9/output.json index 28cdddee6c..730f2f9872 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-9/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-9/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-90/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-90/output.json index a46838420e..761d0322dc 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-90/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-90/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:5)", - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:5)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-91/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-91/output.json index a4f7ce2d86..e7c8a71700 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-91/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-91/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-92/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-92/output.json index 238b8d7eb9..1a9cf66972 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-92/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-92/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-93/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-93/output.json index aca4cb9eaa..2402a2f3cd 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-93/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-93/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-94/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-94/output.json index 0f6ee969f9..e1375d2945 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-94/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-94/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-95/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-95/output.json index ebeef35878..d06248901d 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-95/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-95/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-96/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-96/output.json index 90ccb24c12..b2964641ba 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-96/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-96/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:8)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-97/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-97/output.json index d354fd52d7..a9a7a91c27 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-97/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-97/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-98/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-98/output.json index fb6a380124..c7a18e569e 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-98/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-98/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:6)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-99/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-99/output.json index a54bd3bbf5..f6fa7430ba 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-99/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-99/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: A numeric separator is only allowed between two digits (1:3)", - "SyntaxError: A numeric separator is only allowed between two digits (1:7)" + "SyntaxError: A numeric separator is only allowed between two digits. (1:3)", + "SyntaxError: A numeric separator is only allowed between two digits. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-hex/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-hex/output.json index e0ca2b4b00..36528253f5 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-hex/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-hex/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences (1:4)" + "SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences. (1:4)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, - "value": "\\x1_0", "extra": { "raw": "\"\\x1_0\"", "rawValue": "\\x1_0" - } + }, + "value": "\\x1_0" } } ] diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-leading-zero/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-leading-zero/output.json index 1d2d8a1aa2..749dcece19 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-leading-zero/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-leading-zero/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Numeric separator can not be used after leading 0 (1:1)" + "SyntaxError: Numeric separator can not be used after leading 0. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-legacy-octal-literal/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-legacy-octal-literal/output.json index 2571dfafd4..a2d15c5d74 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-legacy-octal-literal/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-legacy-octal-literal/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Numeric separator can not be used after leading 0 (1:2)" + "SyntaxError: Numeric separator can not be used after leading 0. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-non-octal-decimal-int/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-non-octal-decimal-int/output.json index 1c28d1ead3..2d12c448fa 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-non-octal-decimal-int/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-non-octal-decimal-int/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Numeric separator can not be used after leading 0 (1:2)", - "SyntaxError: Invalid BigIntLiteral (1:0)" + "SyntaxError: Numeric separator can not be used after leading 0. (1:2)", + "SyntaxError: Invalid BigIntLiteral. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode-2/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode-2/output.json index 8dbcd31afd..e0f00b4919 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode-2/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences (1:5)" + "SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences. (1:5)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, - "value": "\\u12_34", "extra": { "raw": "\"\\u12_34\"", "rawValue": "\\u12_34" - } + }, + "value": "\\u12_34" } } ] diff --git a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode/output.json b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode/output.json index f7497689fd..c6b449b5b9 100644 --- a/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode/output.json +++ b/packages/babel-parser/test/fixtures/es2021/numeric-separator/invalid-unicode/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences (1:6)" + "SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences. (1:6)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "\\u{1F_639}", "extra": { "raw": "\"\\u{1F_639}\"", "rawValue": "\\u{1F_639}" - } + }, + "value": "\\u{1F_639}" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/declaration-function/dupe-param/output.json b/packages/babel-parser/test/fixtures/esprima/declaration-function/dupe-param/output.json index 94ce8601ab..55dc023701 100644 --- a/packages/babel-parser/test/fixtures/esprima/declaration-function/dupe-param/output.json +++ b/packages/babel-parser/test/fixtures/esprima/declaration-function/dupe-param/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Argument name clash (1:14)" + "SyntaxError: Argument name clash. (1:14)" ], "program": { "type": "Program", @@ -43,11 +43,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-array-binding-pattern/invalid-dup-param/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-array-binding-pattern/invalid-dup-param/output.json index cd41333b8b..c6c5f5c790 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-array-binding-pattern/invalid-dup-param/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-array-binding-pattern/invalid-dup-param/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Argument name clash (1:11)" + "SyntaxError: Argument name clash. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/output.json index 2bcffbf3a4..39f993b2da 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":20}}, "errors": [ - "SyntaxError: Argument name clash (2:14)" + "SyntaxError: Argument name clash. (2:14)" ], "program": { "type": "Program", @@ -53,11 +53,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-2/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-2/output.json index cc0e0ad645..8fbcd6303c 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-2/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":23}}, "errors": [ - "SyntaxError: Argument name clash (2:17)" + "SyntaxError: Argument name clash. (2:17)" ], "program": { "type": "Program", @@ -57,11 +57,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-3/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-3/output.json index 22f0d17046..cadb9472d4 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-3/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":25}}, "errors": [ - "SyntaxError: Argument name clash (2:19)" + "SyntaxError: Argument name clash. (2:19)" ], "program": { "type": "Program", @@ -32,6 +32,9 @@ { "type": "ObjectProperty", "start":27,"end":28,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":14}}, + "extra": { + "shorthand": true + }, "method": false, "key": { "type": "Identifier", @@ -44,9 +47,6 @@ "type": "Identifier", "start":27,"end":28,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":14},"identifierName":"a"}, "name": "a" - }, - "extra": { - "shorthand": true } } ] @@ -78,11 +78,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-rest/options.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-rest/options.json index daa827f45c..391497d6bd 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-rest/options.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-rest/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:5)" -} + "throws": "Rest element must be last element. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/complex-rest-in-arrow-not-allowed/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/complex-rest-in-arrow-not-allowed/output.json index dfab13123c..b7579d1176 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/complex-rest-in-arrow-not-allowed/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/complex-rest-in-arrow-not-allowed/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Argument name clash (1:7)" + "SyntaxError: Argument name clash. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-duplicated-params/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-duplicated-params/output.json index 54a0b8dc46..29647d15f1 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-duplicated-params/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-duplicated-params/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Argument name clash (1:4)" + "SyntaxError: Argument name clash. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-param-strict-mode/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-param-strict-mode/output.json index 3dcc69133b..f1b868fe35 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-param-strict-mode/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/invalid-param-strict-mode/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:0)" + "SyntaxError: Binding 'eval' in strict mode. (1:0)" ], "program": { "type": "Program", @@ -37,11 +37,11 @@ "value": { "type": "DirectiveLiteral", "start":9,"end":21,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":21}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-arrow/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-arrow/output.json index 9fb39c9ca6..61a859de87 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-arrow/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-arrow/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:2)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-rest/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-rest/output.json index 7aefdb8c93..f3ce571366 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-rest/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/non-arrow-param-followed-by-rest/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:2)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-member-expr/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-member-expr/output.json index 2bdcc96c2d..e2f132b0a0 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-member-expr/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-member-expr/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Binding member expression (1:4)" + "SyntaxError: Binding member expression. (1:4)" ], "program": { "type": "Program", @@ -43,6 +43,7 @@ "start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"b"}, "name": "b" }, + "computed": true, "property": { "type": "NumericLiteral", "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7}}, @@ -51,8 +52,7 @@ "raw": "0" }, "value": 0 - }, - "computed": true + } } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-method-in-pattern/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-method-in-pattern/output.json index 55af574054..3097e7bc80 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-method-in-pattern/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-method-in-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Object pattern can't contain getter or setter (1:6)" + "SyntaxError: Object pattern can't contain getter or setter. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-nested-param/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-nested-param/output.json index cb2922c87c..4daae96c37 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-nested-param/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-nested-param/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}}, "errors": [ - "SyntaxError: Binding member expression (1:24)" + "SyntaxError: Binding member expression. (1:24)" ], "program": { "type": "Program", @@ -123,6 +123,7 @@ "start":24,"end":25,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":25},"identifierName":"b"}, "name": "b" }, + "computed": true, "property": { "type": "NumericLiteral", "start":26,"end":27,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":27}}, @@ -131,8 +132,7 @@ "raw": "0" }, "value": 0 - }, - "computed": true + } } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-01/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-01/output.json index 41ad542d8b..a5a6d9c2b5 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-01/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-01/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid left-hand side in object destructuring pattern (1:4)" + "SyntaxError: Invalid left-hand side in object destructuring pattern. (1:4)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":11,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":11}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -47,10 +51,6 @@ "raw": "0" }, "value": 0 - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-02/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-02/output.json index 7c1957004b..b820b5c7e5 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-02/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-02/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid left-hand side in object destructuring pattern (1:5)" + "SyntaxError: Invalid left-hand side in object destructuring pattern. (1:5)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":14,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":14}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -47,10 +51,6 @@ "raw": "0" }, "value": 0 - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-pattern-with-method/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-pattern-with-method/output.json index 9ad5276de4..9fa150c0e0 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-pattern-with-method/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-pattern-with-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Object pattern can't contain methods (1:2)" + "SyntaxError: Object pattern can't contain methods. (1:2)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":1,"end":10,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":10}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "operator": "=", "left": { "type": "ObjectPattern", @@ -53,10 +57,6 @@ "raw": "0" }, "value": 0 - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment/invalid-group-assignment/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment/invalid-group-assignment/output.json index 7f8cd55c22..67f4e66edc 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment/invalid-group-assignment/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment/invalid-group-assignment/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)", - "SyntaxError: Invalid left-hand side in assignment expression (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)", + "SyntaxError: Invalid left-hand side in assignment expression. (1:1)" ], "program": { "type": "Program", @@ -21,6 +21,10 @@ "left": { "type": "SequenceExpression", "start":1,"end":4,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":4}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "expressions": [ { "type": "Identifier", @@ -32,15 +36,15 @@ "start":3,"end":4,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":4},"identifierName":"b"}, "name": "b" } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] }, "right": { "type": "SequenceExpression", "start":7,"end":10,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":10}}, + "extra": { + "parenthesized": true, + "parenStart": 6 + }, "expressions": [ { "type": "Identifier", @@ -52,11 +56,7 @@ "start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"d"}, "name": "d" } - ], - "extra": { - "parenthesized": true, - "parenStart": 6 - } + ] } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-export-declaration/invalid-export-named-default/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-export-declaration/invalid-export-named-default/output.json index 8d53b1d889..5338a543dd 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-export-declaration/invalid-export-named-default/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-export-declaration/invalid-export-named-default/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Unexpected keyword 'default' (1:8)", - "SyntaxError: Export 'default' is not defined (1:8)" + "SyntaxError: Unexpected keyword 'default'. (1:8)", + "SyntaxError: Export 'default' is not defined. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-const-init/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-const-init/output.json index 6ddebf2093..0765f2b7ae 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-const-init/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-const-init/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: for-of loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-of' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-let-init/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-let-init/output.json index a98d3e9a56..6f666f89b9 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-let-init/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-let-init/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: for-of loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-of' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-lhs-init/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-lhs-init/output.json index e48c18d4d1..125594960f 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-lhs-init/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-lhs-init/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Invalid left-hand side in for-of statement (1:5)" + "SyntaxError: Invalid left-hand side in for-of statement. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-var-init/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-var-init/output.json index 9c90d03acc..5c69faee5e 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-var-init/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/invalid-var-init/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: for-of loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-of' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/unexpected-number/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/unexpected-number/output.json index 5259253cdf..3442f388c9 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-for-of/unexpected-number/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-for-of/unexpected-number/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Const declarations require an initialization value (1:13)", - "SyntaxError: Missing semicolon (1:13)", - "SyntaxError: Missing semicolon (1:16)" + "SyntaxError: 'Const declarations' require an initialization value. (1:13)", + "SyntaxError: Missing semicolon. (1:13)", + "SyntaxError: Missing semicolon. (1:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_escaped_surrogate_pairs/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_escaped_surrogate_pairs/output.json index c59f2314f4..e5fd058f94 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_escaped_surrogate_pairs/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_escaped_surrogate_pairs/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:4)", - "SyntaxError: Invalid Unicode escape (1:10)" + "SyntaxError: Invalid Unicode escape. (1:4)", + "SyntaxError: Invalid Unicode escape. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_id_smp/options.json b/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_id_smp/options.json index 0e85210242..e740f24364 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_id_smp/options.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-identifier/invalid_id_smp/options.json @@ -1,3 +1,3 @@ { - "throws": "Unexpected character '🀒' (1:4)" -} + "throws": "Unexpected character '🀒'. (1:4)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_complex_binding_without_init/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_complex_binding_without_init/output.json index a6a8254f88..40695b1699 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_complex_binding_without_init/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_complex_binding_without_init/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Complex binding patterns require an initialization value (1:6)" + "SyntaxError: 'Complex binding patterns' require an initialization value. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_const_forin/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_const_forin/output.json index 8ed4dab050..1e568eec10 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_const_forin/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_const_forin/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_let_forin/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_let_forin/output.json index 4602d099aa..e3a03d7781 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_let_forin/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-lexical-declaration/invalid_let_forin/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: for-in loop variable declaration may not have an initializer (1:5)" + "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/invalid-new-target/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/invalid-new-target/output.json index d5f6e644d7..a0f8216736 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/invalid-new-target/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/invalid-new-target/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: new.target can only be used in functions (1:8)" + "SyntaxError: `new.target` can only be used in functions. (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/unknown-property/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/unknown-property/output.json index 61fc62e13a..0e8a7f7da1 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/unknown-property/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-meta-property/unknown-property/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}}, "errors": [ - "SyntaxError: The only valid meta property for new is new.target (1:25)" + "SyntaxError: The only valid meta property for new is new.target. (1:25)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-getter-literal-identifier/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-getter-literal-identifier/output.json index ff24f91951..49be2b39f7 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-getter-literal-identifier/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-getter-literal-identifier/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:39)" + "SyntaxError: Redefinition of __proto__ property. (1:39)" ], "program": { "type": "Program", @@ -16,6 +16,11 @@ "expression": { "type": "ObjectExpression", "start":1,"end":57,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":57}}, + "extra": { + "trailingComma": 54, + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectMethod", @@ -75,12 +80,7 @@ "start":50,"end":54,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":54}} } } - ], - "extra": { - "trailingComma": 54, - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-literal/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-literal/output.json index 036a85e2ef..eb0b2a900b 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-literal/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-literal/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:20)" + "SyntaxError: Redefinition of __proto__ property. (1:20)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":39,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":39}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectProperty", @@ -53,11 +57,7 @@ "start":33,"end":37,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":37}} } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifiers/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifiers/output.json index cea3f48035..74a2ebce68 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifiers/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifiers/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:20)" + "SyntaxError: Redefinition of __proto__ property. (1:20)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":37,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":37}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectProperty", @@ -49,11 +53,7 @@ "start":31,"end":35,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":35}} } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-identifier/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-identifier/output.json index f8a8b6f0e0..6a38c3c602 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-identifier/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-identifier/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:22)" + "SyntaxError: Redefinition of __proto__ property. (1:22)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":39,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":39}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectProperty", @@ -53,11 +57,7 @@ "start":33,"end":37,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":37}} } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literals/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literals/output.json index 6c50c95aa2..bae64cb26b 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literals/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literals/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:22)" + "SyntaxError: Redefinition of __proto__ property. (1:22)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":41,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":41}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectProperty", @@ -57,11 +61,7 @@ "start":35,"end":39,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":39}} } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-setter-literal-identifier/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-setter-literal-identifier/output.json index 9ee4dd7e6a..6518a6c689 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-setter-literal-identifier/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-setter-literal-identifier/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":61,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":61}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:42)" + "SyntaxError: Redefinition of __proto__ property. (1:42)" ], "program": { "type": "Program", @@ -16,6 +16,11 @@ "expression": { "type": "ObjectExpression", "start":1,"end":60,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":60}}, + "extra": { + "trailingComma": 57, + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "ObjectMethod", @@ -81,12 +86,7 @@ "start":53,"end":57,"loc":{"start":{"line":1,"column":53},"end":{"line":1,"column":57}} } } - ], - "extra": { - "trailingComma": 57, - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-super-property/invalid_super_not_inside_function/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-super-property/invalid_super_not_inside_function/output.json index 581568e109..e706256b96 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-super-property/invalid_super_not_inside_function/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-super-property/invalid_super_not_inside_function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (1:8)" + "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/invalid-escape/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/invalid-escape/output.json index 6218e2b715..a07fd83ef2 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/invalid-escape/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/invalid-escape/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/unclosed/options.json b/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/unclosed/options.json index 5162185002..bbcc148f2a 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/unclosed/options.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-template-literals/unclosed/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated template (1:1)" -} + "throws": "Unterminated template. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-expression/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-expression/output.json index 4ec3bf958e..d4f4f1ea17 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-expression/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Missing semicolon (1:19)" + "SyntaxError: Missing semicolon. (1:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-default/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-default/output.json index 4a49e72e63..11dc7ee677 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-default/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (1:21)" + "SyntaxError: Yield expression is not allowed in formal parameters. (1:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameter/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameter/output.json index 15805a5977..b19ea0f1ad 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameter/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameter/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (1:16)", - "SyntaxError: Binding invalid left-hand side in function parameter list (1:16)" + "SyntaxError: Yield expression is not allowed in formal parameters. (1:16)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameters/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameters/output.json index 0b7873711f..150d943c5d 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameters/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-arrow-parameters/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (1:25)", - "SyntaxError: Binding invalid left-hand side in function parameter list (1:25)" + "SyntaxError: Yield expression is not allowed in formal parameters. (1:25)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:25)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/output.json index 02857ebe4b..0615f2e86b 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:30)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:30)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-declaration/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-declaration/output.json index bbdafe45b1..adbe1a1ffe 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-declaration/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:26)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:26)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-export-default/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-export-default/output.json index 03ac7846dc..2759bf495c 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-export-default/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-export-default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:25)" + "SyntaxError: Unexpected reserved word 'yield'. (1:25)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-name/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-name/output.json index 4824a8b521..040d236d2b 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-name/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-name/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:10)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:10)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":19,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":19}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":15,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":15},"identifierName":"yield"}, @@ -29,10 +33,6 @@ "start":17,"end":19,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":19}}, "body": [], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-parameter/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-parameter/output.json index 4ace3553e7..045b95268d 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-parameter/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-parameter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:12)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:12)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":20,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":20}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": null, "generator": true, "async": false, @@ -31,10 +35,6 @@ "start":18,"end":20,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":20}}, "body": [], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-rest/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-rest/output.json index 2f778cc2fe..44d7dfc5a2 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-rest/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-expression-rest/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:18)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:18)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":26,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":26}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": null, "generator": true, "async": false, @@ -40,10 +44,6 @@ "start":24,"end":26,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":26}}, "body": [], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/output.json index 81b4ea1bb5..2f7c84fe6e 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-function-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:25)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:25)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-lexical-declaration/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-lexical-declaration/output.json index 7f30d12065..95b38e445d 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-lexical-declaration/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-lexical-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:20)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-parameter/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-parameter/output.json index 5746a0c95c..d8c5bd8655 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-parameter/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-parameter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:12)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-rest/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-rest/output.json index aabcbd49fd..bec0eaf24b 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-rest/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-rest/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:24)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:24)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-expression/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-expression/output.json index 6e1c91ec0f..9ab8f21d7e 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-expression/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:46)" + "SyntaxError: Unexpected reserved word 'yield'. (1:46)" ], "program": { "type": "Program", @@ -71,11 +71,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-parameter/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-parameter/output.json index 84e6c92063..3d1a5f1dda 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-parameter/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-strict-function-parameter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:47)" + "SyntaxError: Unexpected reserved word 'yield'. (1:47)" ], "program": { "type": "Program", @@ -73,11 +73,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-variable-declaration/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-variable-declaration/output.json index 0dd81b4d0d..4c94c63bee 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-variable-declaration/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-variable-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Can not use 'yield' as identifier inside a generator (1:20)" + "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-array-pattern/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-array-pattern/output.json index a662f4e01b..8e11926634 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-array-pattern/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-array-pattern/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:16)" + "SyntaxError: Unexpected reserved word 'yield'. (1:16)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "AssignmentExpression", "start":15,"end":26,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":26}}, + "extra": { + "parenthesized": true, + "parenStart": 14 + }, "operator": "=", "left": { "type": "ArrayPattern", @@ -32,10 +36,6 @@ "type": "Identifier", "start":25,"end":26,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":26},"identifierName":"x"}, "name": "x" - }, - "extra": { - "parenthesized": true, - "parenStart": 14 } } } @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-default/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-default/output.json index c6814edc8a..019abccf9b 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-default/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:19)" + "SyntaxError: Unexpected reserved word 'yield'. (1:19)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-name/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-name/output.json index bf2fe84747..8203838cbe 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-name/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-arrow-parameter-name/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:15)" + "SyntaxError: Unexpected reserved word 'yield'. (1:15)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/output.json index c1253768e7..255f77939b 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:23)" + "SyntaxError: Unexpected reserved word 'yield'. (1:23)" ], "program": { "type": "Program", @@ -57,11 +57,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/output.json index dda9f41982..948d656013 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:28)" + "SyntaxError: Unexpected reserved word 'yield'. (1:28)" ], "program": { "type": "Program", @@ -44,11 +44,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-formal-parameter/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-formal-parameter/output.json index 0d2aafc854..871b74efce 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-formal-parameter/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-formal-parameter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:25)" + "SyntaxError: Unexpected reserved word 'yield'. (1:25)" ], "program": { "type": "Program", @@ -42,11 +42,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/output.json index 5f2d921752..ce1d3d4be9 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: Binding 'yield' in strict mode (1:9)" + "SyntaxError: Binding 'yield' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-expression/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-expression/output.json index f9eae4038a..1318571305 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-expression/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Binding 'yield' in strict mode (1:10)" + "SyntaxError: Binding 'yield' in strict mode. (1:10)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":34,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":34}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":15,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":15},"identifierName":"yield"}, @@ -35,18 +39,14 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-identifier/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-identifier/output.json index 6ea37fe809..1affee4273 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-identifier/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-identifier/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:29)" + "SyntaxError: Unexpected reserved word 'yield'. (1:29)" ], "program": { "type": "Program", @@ -46,11 +46,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-lexical-declaration/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-lexical-declaration/output.json index 9a8eac94ac..847e155c21 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-lexical-declaration/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-lexical-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:18)" + "SyntaxError: Unexpected reserved word 'yield'. (1:18)" ], "program": { "type": "Program", @@ -43,11 +43,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/output.json index 2aaef66dea..54fc9d1959 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:28)" + "SyntaxError: Unexpected reserved word 'yield'. (1:28)" ], "program": { "type": "Program", @@ -46,11 +46,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-variable-declaration/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-variable-declaration/output.json index 5554975e11..71870094cf 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-variable-declaration/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-variable-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:18)" + "SyntaxError: Unexpected reserved word 'yield'. (1:18)" ], "program": { "type": "Program", @@ -35,11 +35,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-arrow-default/output.json b/packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-arrow-default/output.json index d74d0a848b..257003df30 100644 --- a/packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-arrow-default/output.json +++ b/packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-arrow-default/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Yield expression is not allowed in formal parameters (1:21)" + "SyntaxError: Yield expression is not allowed in formal parameters. (1:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/expression-primary-array/migrated_0012/output.json b/packages/babel-parser/test/fixtures/esprima/expression-primary-array/migrated_0012/output.json index ba8f74f4e0..a2fee76573 100644 --- a/packages/babel-parser/test/fixtures/esprima/expression-primary-array/migrated_0012/output.json +++ b/packages/babel-parser/test/fixtures/esprima/expression-primary-array/migrated_0012/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:12)" + "SyntaxError: Invalid Unicode escape. (1:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-00/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-00/output.json index 88942a742b..72cd5ec5d5 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-00/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-00/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, - "value": "\\x", "extra": { "raw": "\"\\x\"", "rawValue": "\\x" - } + }, + "value": "\\x" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-01/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-01/output.json index f306e9f023..7f928cd1dd 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-01/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-01/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, - "value": "\\x0", "extra": { "raw": "\"\\x0\"", "rawValue": "\\x0" - } + }, + "value": "\\x0" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-02/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-02/output.json index c25ed8c834..2f085bc4ef 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-02/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-02/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, - "value": "\\xx", "extra": { "raw": "\"\\xx\"", "rawValue": "\\xx" - } + }, + "value": "\\xx" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-03/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-03/output.json index a9e327e586..fbc7576fdf 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-03/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-03/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, - "value": "\\u", "extra": { "raw": "\"\\u\"", "rawValue": "\\u" - } + }, + "value": "\\u" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-04/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-04/output.json index 93cf7ff8ff..ba29620802 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-04/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-04/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, - "value": "\\u0", "extra": { "raw": "\"\\u0\"", "rawValue": "\\u0" - } + }, + "value": "\\u0" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-05/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-05/output.json index 0964301530..8bec3a48c6 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-05/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-05/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, - "value": "\\ux", "extra": { "raw": "\"\\ux\"", "rawValue": "\\ux" - } + }, + "value": "\\ux" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-06/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-06/output.json index 9d296488f0..ca6e0068be 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-06/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-06/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, - "value": "\\u00", "extra": { "raw": "\"\\u00\"", "rawValue": "\\u00" - } + }, + "value": "\\u00" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-07/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-07/output.json index 667e2055d9..ea6cf6a8b3 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-07/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/GH-1106-07/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", @@ -17,11 +17,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, - "value": "\\u000", "extra": { "raw": "\"\\u000\"", "rawValue": "\\u000" - } + }, + "value": "\\u000" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0002/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0002/options.json index ee18527964..8ca0a88b10 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0002/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0002/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:2)" -} + "throws": "Identifier directly after number. (1:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0003/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0003/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0003/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0003/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0004/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0004/output.json index 6afcaf3f50..8aee6eeea3 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0004/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0004/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Floating-point numbers require a valid exponent after the 'e' (1:0)" + "SyntaxError: Floating-point numbers require a valid exponent after the 'e'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0005/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0005/output.json index 3402747209..d8e6109449 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0005/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0005/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Floating-point numbers require a valid exponent after the 'e' (1:0)" + "SyntaxError: Floating-point numbers require a valid exponent after the 'e'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0006/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0006/output.json index 666fcca212..77750f5401 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0006/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0006/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Floating-point numbers require a valid exponent after the 'e' (1:0)" + "SyntaxError: Floating-point numbers require a valid exponent after the 'e'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0007/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0007/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0007/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0007/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0008/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0008/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0008/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0008/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0009/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0009/output.json index 9a1a7ea608..f67a53a3af 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0009/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0009/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 16 (1:2)" + "SyntaxError: Expected number in radix 16. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0010/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0010/options.json index ee18527964..8ca0a88b10 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0010/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0010/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:2)" -} + "throws": "Identifier directly after number. (1:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0011/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0011/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0011/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0011/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0012/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0012/output.json index a880531bce..e3f4428bc9 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0012/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0012/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0013/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0013/output.json index 91dec1a230..17d44bb734 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0013/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0013/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0014/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0014/output.json index 42696d4924..fb1d13c952 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0014/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0014/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0015/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0015/output.json index 9ed93409bc..4bccf581bf 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0015/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0015/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:3)" + "SyntaxError: Expected number in radix 8. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0016/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0016/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0016/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0016/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0017/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0017/output.json index bd3bd49916..fe15b2f041 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0017/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0017/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0018/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0018/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0018/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0018/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0019/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0019/output.json index fabbead514..47c0f4397a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0019/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0019/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0020/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0020/output.json index c90afe1734..68c905933a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0020/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0020/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0021/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0021/output.json index 2b8e4f22be..4f60e9e38b 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0021/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0021/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0022/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0022/output.json index 6cfde9edb3..b750712f4f 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0022/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0022/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0023/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0023/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0023/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0023/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0024/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0024/output.json index 6e3728ace3..31d92ec360 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0024/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0024/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:2)" + "SyntaxError: Expected number in radix 2. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0025/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0025/output.json index d5ba308d59..a909b5c95b 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0025/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0025/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0026/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0026/output.json index af38f05f89..4e1c026819 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0026/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0026/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 2 (1:3)" + "SyntaxError: Expected number in radix 2. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0027/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0027/output.json index 2fbc3ece31..91c3423417 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0027/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0027/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:2)" + "SyntaxError: Expected number in radix 8. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0028/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0028/output.json index 4978bcf4e5..dd1203515e 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0028/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0028/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Expected number in radix 8 (1:3)" + "SyntaxError: Expected number in radix 8. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0029/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0029/options.json index c70fa099de..3c92b536ac 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0029/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0029/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:1)" -} + "throws": "Identifier directly after number. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0030/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0030/options.json index dd76235059..ff93a89933 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0030/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0030/options.json @@ -1,3 +1,3 @@ { - "throws": "Identifier directly after number (1:3)" -} + "throws": "Identifier directly after number. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0031/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0031/options.json index d732a16309..d55f05b989 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0031/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0031/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:0)" -} + "throws": "Unterminated string constant. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0032/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0032/output.json index 5dd7b5d3fc..5a42dc4011 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0032/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0032/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:2)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0033/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0033/output.json index d9a89994f0..c6a8c44431 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0033/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0033/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:1)" + "SyntaxError: Invalid Unicode escape. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0034/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0034/output.json index 32180fcde9..ab96020c3d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0034/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0034/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:1)" + "SyntaxError: Invalid Unicode escape. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0036/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0036/output.json index f676471df1..6ba1621958 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0036/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0036/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0037/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0037/output.json index 8bc86d6bda..def31c0a47 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0037/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0037/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:2)" + "SyntaxError: Bad character escape sequence. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0038/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0038/options.json index 66fb1cd63b..150f288739 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0038/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0038/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:1)" -} + "throws": "Unterminated regular expression. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0039/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0039/options.json index 66fb1cd63b..150f288739 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0039/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0039/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:1)" -} + "throws": "Unterminated regular expression. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0040/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0040/options.json index 66fb1cd63b..150f288739 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0040/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0040/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:1)" -} + "throws": "Unterminated regular expression. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0041/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0041/output.json index d42d61f8a5..8d5a269745 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0041/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0041/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Invalid regular expression flag (1:16)", - "SyntaxError: Invalid regular expression flag (1:18)" + "SyntaxError: Invalid regular expression flag. (1:16)", + "SyntaxError: Invalid regular expression flag. (1:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0042/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0042/output.json index 1e07f7e127..929074b9a1 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0042/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0042/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Invalid regular expression flag (1:18)", - "SyntaxError: Invalid regular expression flag (1:20)" + "SyntaxError: Invalid regular expression flag. (1:18)", + "SyntaxError: Invalid regular expression flag. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0043/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0043/output.json index 471a965aa7..cfaa6c0a71 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0043/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0043/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Invalid regular expression flag (1:16)", - "SyntaxError: Invalid regular expression flag (1:17)", - "SyntaxError: Invalid regular expression flag (1:19)" + "SyntaxError: Invalid regular expression flag. (1:16)", + "SyntaxError: Invalid regular expression flag. (1:17)", + "SyntaxError: Invalid regular expression flag. (1:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0044/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0044/output.json index c783115307..a1aa834170 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0044/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0044/output.json @@ -2,12 +2,12 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Invalid regular expression flag (1:17)", - "SyntaxError: Invalid regular expression flag (1:18)", - "SyntaxError: Invalid regular expression flag (1:20)", - "SyntaxError: Invalid regular expression flag (1:21)", - "SyntaxError: Invalid regular expression flag (1:22)", - "SyntaxError: Invalid regular expression flag (1:23)" + "SyntaxError: Invalid regular expression flag. (1:17)", + "SyntaxError: Invalid regular expression flag. (1:18)", + "SyntaxError: Invalid regular expression flag. (1:20)", + "SyntaxError: Invalid regular expression flag. (1:21)", + "SyntaxError: Invalid regular expression flag. (1:22)", + "SyntaxError: Invalid regular expression flag. (1:23)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0045/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0045/output.json index d4d2cf5dfe..615e2fb600 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0045/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0045/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0046/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0046/output.json index edc3258403..fdcc499e4a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0046/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0046/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0047/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0047/output.json index 46112c6c88..66b1f9ca63 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0047/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0047/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:1)", - "SyntaxError: Invalid left-hand side in assignment expression (1:1)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:1)", + "SyntaxError: Invalid left-hand side in assignment expression. (1:1)" ], "program": { "type": "Program", @@ -21,6 +21,10 @@ "left": { "type": "BinaryExpression", "start":1,"end":6,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":6}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "left": { "type": "NumericLiteral", "start":1,"end":2,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":2}}, @@ -39,10 +43,6 @@ "raw": "1" }, "value": 1 - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "right": { diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0049/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0049/output.json index 53070d6b82..d35030ba83 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0049/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0049/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0050/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0050/output.json index b43e07489e..dc4475a6dc 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0050/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0050/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0051/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0051/output.json index ff97ec8233..4d49b38158 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0051/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0051/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Bad character escape sequence (1:3)" + "SyntaxError: Bad character escape sequence. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0052/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0052/output.json index 89b9c579fa..62473b4541 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0052/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0052/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in postfix operation (1:0)" + "SyntaxError: Invalid left-hand side in postfix operation. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0053/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0053/output.json index b0387fd4ff..d05ce3bd54 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0053/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0053/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in postfix operation (1:0)" + "SyntaxError: Invalid left-hand side in postfix operation. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0054/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0054/output.json index e86e86ca22..450e585960 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0054/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0054/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in prefix operation (1:2)" + "SyntaxError: Invalid left-hand side in prefix operation. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0055/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0055/output.json index de49f7815b..6e320d221c 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0055/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0055/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3}}, "errors": [ - "SyntaxError: Invalid left-hand side in prefix operation (1:2)" + "SyntaxError: Invalid left-hand side in prefix operation. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0056/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0056/output.json index 609aed8d62..ce1ff12dc0 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0056/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0056/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:5)", - "SyntaxError: Invalid left-hand side in for-in statement (1:5)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:5)", + "SyntaxError: Invalid left-hand side in for-in statement. (1:5)" ], "program": { "type": "Program", @@ -17,6 +17,10 @@ "left": { "type": "BinaryExpression", "start":5,"end":10,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":10}}, + "extra": { + "parenthesized": true, + "parenStart": 4 + }, "left": { "type": "NumericLiteral", "start":5,"end":6,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":6}}, @@ -35,10 +39,6 @@ "raw": "1" }, "value": 1 - }, - "extra": { - "parenthesized": true, - "parenStart": 4 } }, "right": { diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0062/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0062/options.json index 2fd762cd6a..3f39a2ac3b 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0062/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0062/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:9)" -} + "throws": "Unterminated regular expression. (1:9)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0063/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0063/options.json index 9d0cd9237f..cceacaba73 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0063/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0063/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:8)" -} + "throws": "Unterminated string constant. (1:8)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0064/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0064/output.json index 71a10a5324..4bb04dbcff 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0064/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0064/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Unexpected keyword 'if' (1:4)" + "SyntaxError: Unexpected keyword 'if'. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0066/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0066/output.json index 62e9955107..1891a2eec0 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0066/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0066/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0067/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0067/output.json index ba27c1c609..6ba5a516e0 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0067/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0067/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0071/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0071/output.json index ec9f3f126a..f9e98bbc6c 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0071/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0071/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Missing semicolon (1:5)" + "SyntaxError: Missing semicolon. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0072/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0072/output.json index eb17665ab7..b0e9ab8b21 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0072/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0072/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: Missing semicolon (1:5)" + "SyntaxError: Missing semicolon. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0075/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0075/output.json index d704a0cb48..bbaa5f8517 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0075/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0075/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: setter must have exactly one formal parameter (1:3)" + "SyntaxError: A 'set' accesor must have exactly one formal parameter. (1:3)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ObjectExpression", "start":1,"end":16,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":16}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "properties": [ { "type": "Property", @@ -44,11 +48,7 @@ }, "shorthand": false } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0087/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0087/output.json index cca401d0d1..2c169917e7 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0087/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0087/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:15)", - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:15)", + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0088/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0088/output.json index 8e8d8419af..39a48ce279 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0088/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0088/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:14)" + "SyntaxError: Binding 'eval' in strict mode. (1:14)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0089/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0089/output.json index 5a18ea14d8..35d22ba742 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0089/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0089/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:14)" + "SyntaxError: Binding 'arguments' in strict mode. (1:14)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0090/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0090/output.json index c5a150d343..d0530400d0 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0090/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0090/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0091/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0091/output.json index 402704e9de..60534b0002 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0091/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0091/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:15)" + "SyntaxError: Binding 'arguments' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0092/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0092/output.json index 4cfc4cd77e..96b5bc510c 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0092/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0092/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Argument name clash (1:4)" + "SyntaxError: Argument name clash. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0093/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0093/output.json index e552560189..cba6699ec1 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0093/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0093/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Argument name clash (1:18)" + "SyntaxError: Argument name clash. (1:18)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0094/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0094/output.json index 70812a59cc..8f898cf7a2 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0094/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0094/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:21)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:21)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0098/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0098/output.json index 6b624a3ee4..2fdc8e15fe 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0098/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0098/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (1:1)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0099/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0099/output.json index 06d87dffa4..a6277b918c 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0099/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0099/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (1:1)", - "SyntaxError: Binding invalid left-hand side in function parameter list (1:5)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:1)", + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0100/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0100/output.json index 8515329a04..657451b675 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0100/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0100/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -45,11 +45,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0101/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0101/output.json index 16f6411a56..242bb03d55 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0101/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0101/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:1)" + "SyntaxError: Binding 'eval' in strict mode. (1:1)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":12,"end":24,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":24}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0112/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0112/output.json index 9f46d8a53e..f26fb79a0e 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0112/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0112/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Missing semicolon (1:1)" + "SyntaxError: Missing semicolon. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0115/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0115/output.json index 3b44c2aa68..8ab2c6aeee 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0115/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0115/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Missing semicolon (1:1)", - "SyntaxError: Unexpected reserved word 'enum' (1:2)" + "SyntaxError: Missing semicolon. (1:1)", + "SyntaxError: Unexpected reserved word 'enum'. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0116/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0116/output.json index 8ce94b9605..c518595a41 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0116/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0116/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Unsyntactic break (1:0)" + "SyntaxError: Unsyntactic break. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0118/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0118/output.json index 6d89822f15..811d70b316 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0118/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0118/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:0)" + "SyntaxError: Unsyntactic continue. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0125/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0125/output.json index d3af5238b3..2d4dd7e24b 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0125/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0125/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Invalid left-hand side in for-in statement (1:5)" + "SyntaxError: Invalid left-hand side in for-in statement. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0126/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0126/output.json index a68f97021f..8344401eaa 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0126/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0126/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid left-hand side in for-in statement (1:5)" + "SyntaxError: Invalid left-hand side in for-in statement. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0133/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0133/output.json index a0bb1f5c08..f9808a0f84 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0133/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0133/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Missing catch or finally clause (1:0)" + "SyntaxError: Missing catch or finally clause. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0137/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0137/output.json index 8515bc8f1f..16fda0d068 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0137/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0137/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:0)" + "SyntaxError: Invalid Unicode escape. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0138/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0138/output.json index fdf1d3c3fc..720ebefb9d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0138/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0138/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Const declarations require an initialization value (1:15)" + "SyntaxError: 'Const declarations' require an initialization value. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0139/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0139/output.json index e19f992ee2..2a863afacb 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0139/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0139/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Const declarations require an initialization value (1:7)" + "SyntaxError: 'Const declarations' require an initialization value. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0140/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0140/output.json index 1ed957df3a..f2a024e81c 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0140/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0140/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Const declarations require an initialization value (1:7)" + "SyntaxError: 'Const declarations' require an initialization value. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0141/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0141/output.json index 607bb08d2c..6708beed78 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0141/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0141/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Missing semicolon (1:12)" + "SyntaxError: Missing semicolon. (1:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0142/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0142/output.json index 65a76ea528..ca54ca20a5 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0142/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0142/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Lexical declaration cannot appear in a single-statement context (1:9)" + "SyntaxError: Lexical declaration cannot appear in a single-statement context. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0143/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0143/output.json index 322359217c..2588843bac 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0143/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0143/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Multiple default clauses (1:22)" + "SyntaxError: Multiple default clauses. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0145/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0145/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0145/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0145/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0146/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0146/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0146/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0146/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0147/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0147/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0147/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0147/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0148/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0148/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0148/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0148/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0149/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0149/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0149/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0149/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0150/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0150/options.json index eb40f4f052..b25c10705d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0150/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0150/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated comment (1:0)" -} + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0157/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0157/options.json index 66fb1cd63b..150f288739 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0157/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0157/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated regular expression (1:1)" -} + "throws": "Unterminated regular expression. (1:1)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0162/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0162/output.json index 4e21f3ee7b..fb33b618be 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0162/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0162/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":1,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":1}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:1)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0163/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0163/output.json index 6c34e22a00..882d234cfa 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0163/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0163/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:0)" + "SyntaxError: Invalid Unicode escape. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0164/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0164/output.json index cc7b3b44d6..de59dbe06c 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0164/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0164/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:1)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0165/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0165/output.json index 3af7d55ae1..ab518a1a3a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0165/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0165/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:0)" + "SyntaxError: Invalid Unicode escape. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0166/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0166/output.json index b79101954c..a918705d98 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0166/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0166/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:0)" + "SyntaxError: Invalid Unicode escape. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0167/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0167/output.json index 88eefa8ba7..dc3bf6a819 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0167/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0167/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Invalid Unicode escape (1:0)" + "SyntaxError: Invalid Unicode escape. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0168/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0168/options.json index d732a16309..d55f05b989 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0168/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0168/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:0)" -} + "throws": "Unterminated string constant. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0169/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0169/options.json index d732a16309..d55f05b989 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0169/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0169/options.json @@ -1,3 +1,3 @@ { - "throws": "Unterminated string constant (1:0)" -} + "throws": "Unterminated string constant. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0171/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0171/output.json index 5875cb58be..0663176265 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0171/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0171/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: 'return' outside of function (1:0)" + "SyntaxError: 'return' outside of function. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0172/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0172/output.json index 8ce94b9605..c518595a41 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0172/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0172/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Unsyntactic break (1:0)" + "SyntaxError: Unsyntactic break. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0173/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0173/output.json index 6d89822f15..811d70b316 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0173/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0173/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:0)" + "SyntaxError: Unsyntactic continue. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0174/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0174/output.json index 37451db0ed..195fb76444 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0174/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0174/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:22)" + "SyntaxError: Unsyntactic continue. (1:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0176/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0176/output.json index ae9cb401dd..46f73d4c4e 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0176/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0176/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Unsyntactic break (1:15)" + "SyntaxError: Unsyntactic break. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0177/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0177/output.json index 39c5663443..e9e33c6523 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0177/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0177/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:15)" + "SyntaxError: Unsyntactic continue. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0178/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0178/output.json index 3939133b3b..fa61b279c3 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0178/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0178/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}}, "errors": [ - "SyntaxError: Unsyntactic break (1:33)" + "SyntaxError: Unsyntactic break. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":43,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":43}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -50,10 +54,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0179/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0179/output.json index d65c7f7da9..4390beac20 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0179/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0179/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:33)" + "SyntaxError: Unsyntactic continue. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":46,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":46}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -50,10 +54,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0180/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0180/output.json index 336add4fe3..4a682d6c85 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0180/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0180/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":45}}, "errors": [ - "SyntaxError: Unsyntactic break (1:33)" + "SyntaxError: Unsyntactic break. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":41,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":41}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -46,10 +50,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0181/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0181/output.json index ac86039c65..9321eacbd5 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0181/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0181/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}}, "errors": [ - "SyntaxError: Unsyntactic continue (1:33)" + "SyntaxError: Unsyntactic continue. (1:33)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":19,"end":44,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":44}}, + "extra": { + "parenthesized": true, + "parenStart": 18 + }, "id": null, "generator": false, "async": false, @@ -46,10 +50,6 @@ } ], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 18 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0182/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0182/output.json index 815a430cb2..b16e8da6eb 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0182/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0182/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Label 'x' is already declared (1:18)" + "SyntaxError: Label 'x' is already declared. (1:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0183/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0183/output.json index 392c525509..4eac4215e0 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0183/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0183/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}}, "errors": [ - "SyntaxError: Deleting local variable in strict mode (1:29)" + "SyntaxError: Deleting local variable in strict mode. (1:29)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "CallExpression", "start":1,"end":42,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":42}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "callee": { "type": "FunctionExpression", "start":1,"end":40,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":40}}, @@ -50,21 +54,17 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + "arguments": [] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0184/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0184/output.json index 62cf67d34e..224e3d31eb 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0184/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0184/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}}, "errors": [ - "SyntaxError: 'with' in strict mode (1:29)" + "SyntaxError: 'with' in strict mode. (1:29)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "CallExpression", "start":1,"end":42,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":42}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "callee": { "type": "FunctionExpression", "start":1,"end":40,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":40}}, @@ -48,21 +52,17 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + "arguments": [] } } ], diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0185/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0185/output.json index fcd0ab9858..067b73ce53 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0185/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0185/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:36)" + "SyntaxError: Binding 'eval' in strict mode. (1:36)" ], "program": { "type": "Program", @@ -58,11 +58,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0186/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0186/output.json index d557326e99..2d7204637a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0186/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0186/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:36)" + "SyntaxError: Binding 'arguments' in strict mode. (1:36)" ], "program": { "type": "Program", @@ -58,11 +58,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0187/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0187/output.json index 3040718fd5..44484811f9 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0187/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0187/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:47)" + "SyntaxError: Binding 'eval' in strict mode. (1:47)" ], "program": { "type": "Program", @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0188/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0188/output.json index 429d686ed4..dca567981b 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0188/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0188/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:47)" + "SyntaxError: Binding 'arguments' in strict mode. (1:47)" ], "program": { "type": "Program", @@ -59,11 +59,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0189/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0189/output.json index 79c71ebb54..3338052138 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0189/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0189/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:32)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -56,11 +56,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0190/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0190/output.json index ec34fa9d5c..3d1c7d7ebe 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0190/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0190/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:32)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -56,11 +56,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0191/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0191/output.json index 2ad9422223..5593bc5e19 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0191/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0191/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:34)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0192/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0192/output.json index c85c53c215..6b15ccd03e 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0192/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0192/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:34)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0193/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0193/output.json index 8635017ed5..35025e0c60 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0193/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0193/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:34)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0194/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0194/output.json index 0090b60112..5bead73e79 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0194/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0194/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:34)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:34)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0195/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0195/output.json index 439436ef7e..0b82488fd4 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0195/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0195/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:32)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0196/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0196/output.json index b68c731a58..9bbefb53c9 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0196/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0196/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:32)" + "SyntaxError: Assigning to 'eval' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0197/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0197/output.json index 52dbdc3d5c..58d6e13320 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0197/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0197/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:32)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0198/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0198/output.json index 48c2df5468..0a859a25f4 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0198/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0198/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:32)" + "SyntaxError: Assigning to 'arguments' in strict mode. (1:32)" ], "program": { "type": "Program", @@ -48,11 +48,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0199/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0199/output.json index 3c4ac7fd38..eacc05a4b0 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0199/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0199/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:41)" + "SyntaxError: Binding 'eval' in strict mode. (1:41)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0200/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0200/output.json index e183294a23..4fc4cfff5a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0200/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0200/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:41)" + "SyntaxError: Binding 'arguments' in strict mode. (1:41)" ], "program": { "type": "Program", @@ -51,11 +51,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0201/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0201/output.json index c252adad5c..fdc46d061d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0201/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0201/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:9)" + "SyntaxError: Binding 'eval' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":17,"end":29,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":29}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0202/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0202/output.json index 2c691b4f70..7b1924caf1 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0202/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0202/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:9)" + "SyntaxError: Binding 'arguments' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":22,"end":34,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":34}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0203/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0203/output.json index 9e3046fe27..48f9179f3b 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0203/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0203/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":57}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:42)" + "SyntaxError: Binding 'eval' in strict mode. (1:42)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "CallExpression", "start":33,"end":54,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":54}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "callee": { "type": "FunctionExpression", "start":33,"end":52,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":52}}, @@ -49,11 +53,7 @@ "directives": [] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + "arguments": [] } } ], @@ -64,11 +64,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0204/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0204/output.json index 2502c52e18..2d2f562d54 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0204/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0204/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":62}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:42)" + "SyntaxError: Binding 'arguments' in strict mode. (1:42)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "CallExpression", "start":33,"end":59,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":59}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "callee": { "type": "FunctionExpression", "start":33,"end":57,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":57}}, @@ -49,11 +53,7 @@ "directives": [] } }, - "arguments": [], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + "arguments": [] } } ], @@ -64,11 +64,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0205/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0205/output.json index 887c411495..3c81b46822 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0205/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0205/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:10)" + "SyntaxError: Binding 'eval' in strict mode. (1:10)" ], "program": { "type": "Program", @@ -19,6 +19,10 @@ "callee": { "type": "FunctionExpression", "start":1,"end":33,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":33}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":14,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":14},"identifierName":"eval"}, @@ -38,18 +42,14 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "arguments": [] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0206/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0206/output.json index 250afef7d8..8e6c5c8943 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0206/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0206/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:10)" + "SyntaxError: Binding 'arguments' in strict mode. (1:10)" ], "program": { "type": "Program", @@ -19,6 +19,10 @@ "callee": { "type": "FunctionExpression", "start":1,"end":38,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":38}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":19,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":19},"identifierName":"arguments"}, @@ -38,18 +42,14 @@ "value": { "type": "DirectiveLiteral", "start":23,"end":35,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":35}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "arguments": [] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0207/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0207/output.json index 03985eff0b..9229db313a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0207/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0207/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:47)" + "SyntaxError: Binding 'eval' in strict mode. (1:47)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":59,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":59}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectProperty", @@ -62,11 +66,7 @@ } } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -77,11 +77,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0208/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0208/output.json index 29ce013f0b..c5b8877683 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0208/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0208/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Binding 'package' in strict mode (1:10)" + "SyntaxError: Binding 'package' in strict mode. (1:10)" ], "program": { "type": "Program", @@ -19,6 +19,10 @@ "callee": { "type": "FunctionExpression", "start":1,"end":36,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":36}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":17,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":17},"identifierName":"package"}, @@ -38,18 +42,14 @@ "value": { "type": "DirectiveLiteral", "start":21,"end":33,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":33}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } }, "arguments": [] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0209/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0209/output.json index 60d4df26f9..47a65a4a93 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0209/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0209/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:48)" + "SyntaxError: Binding 'eval' in strict mode. (1:48)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":59,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":59}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectProperty", @@ -81,11 +85,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -96,11 +96,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0210/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0210/output.json index 4ee83b1402..6f387fb201 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0210/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0210/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":56}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:41)" + "SyntaxError: Binding 'eval' in strict mode. (1:41)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":52,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":52}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectMethod", @@ -60,11 +64,7 @@ "directives": [] } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -75,11 +75,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0211/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0211/output.json index 0c8905156a..68a903fb4f 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0211/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0211/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":64,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":64}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:49)" + "SyntaxError: Binding 'eval' in strict mode. (1:49)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":33,"end":60,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":60}}, + "extra": { + "parenthesized": true, + "parenStart": 32 + }, "properties": [ { "type": "ObjectProperty", @@ -68,11 +72,7 @@ } } } - ], - "extra": { - "parenthesized": true, - "parenStart": 32 - } + ] } } ], @@ -83,11 +83,11 @@ "value": { "type": "DirectiveLiteral", "start":18,"end":30,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":30}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0212/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0212/output.json index 3ccaace1b1..830edc82be 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0212/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0212/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:15)" + "SyntaxError: Binding 'eval' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":22,"end":34,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":34}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0213/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0213/output.json index dc142e7610..232a3d3612 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0213/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0213/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:15)" + "SyntaxError: Binding 'arguments' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":27,"end":39,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":39}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0214/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0214/output.json index d887db53f5..9b32d2b448 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0214/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0214/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":58}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:48)" + "SyntaxError: Binding 'eval' in strict mode. (1:48)" ], "program": { "type": "Program", @@ -57,11 +57,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0215/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0215/output.json index ded1814137..7395b0a56a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0215/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0215/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":63}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:48)" + "SyntaxError: Binding 'arguments' in strict mode. (1:48)" ], "program": { "type": "Program", @@ -57,11 +57,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0216/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0216/output.json index fa26c140fe..ba29c1ca0f 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0216/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0216/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:2)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0217/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0217/output.json index 66906dba7f..268b23194b 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0217/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0217/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:35)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:35)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0218/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0218/output.json index f4096149d8..dab3473097 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0218/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0218/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:33)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:33)" ], "program": { "type": "Program", @@ -46,11 +46,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0219/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0219/output.json index 0491546b1a..2be4810dff 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0219/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0219/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:38)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:38)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":34,"end":46,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":46}}, + "extra": { + "parenthesized": true, + "parenStart": 33 + }, "properties": [ { "type": "ObjectProperty", @@ -57,11 +61,7 @@ "value": 42 } } - ], - "extra": { - "parenthesized": true, - "parenStart": 33 - } + ] } } ], @@ -72,11 +72,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0220/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0220/output.json index 8caf22da60..7e92eeb15f 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0220/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0220/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (1:36)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:36)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "ObjectExpression", "start":34,"end":45,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":45}}, + "extra": { + "parenthesized": true, + "parenStart": 33 + }, "properties": [ { "type": "ObjectProperty", @@ -57,11 +61,7 @@ "value": 42 } } - ], - "extra": { - "parenthesized": true, - "parenStart": 33 - } + ] } } ], @@ -72,11 +72,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "'use strict'", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0221/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0221/output.json index d0760f1b38..810a2fe1c2 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0221/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0221/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":55}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:36)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:36)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0222/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0222/output.json index 2ed529ae45..d454991b19 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0222/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0222/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":76,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":76}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:36)", - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:57)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:36)", + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:57)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0223/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0223/output.json index 2c6c0e03d2..6a534cbb80 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0223/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0223/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":76,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":76}}, "errors": [ - "SyntaxError: The only valid numeric escape in strict mode is '\\0' (1:69)" + "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:69)" ], "program": { "type": "Program", @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":52,"end":71,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":71}}, - "value": "octal directive\\1", "extra": { "raw": "\"octal directive\\1\"", "rawValue": "octal directive\\1" - } + }, + "value": "octal directive\\1" } } ] @@ -65,11 +65,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0224/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0224/output.json index a3eee1ca11..917c3e5a9e 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0224/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0224/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: Unexpected reserved word 'implements' (1:37)" + "SyntaxError: Unexpected reserved word 'implements'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0225/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0225/output.json index cffcb241d4..98446531fa 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0225/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0225/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:37)" + "SyntaxError: Unexpected reserved word 'interface'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0226/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0226/output.json index 3d7bd0ac8e..4e1da8899d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0226/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0226/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}}, "errors": [ - "SyntaxError: Unexpected reserved word 'package' (1:37)" + "SyntaxError: Unexpected reserved word 'package'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0227/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0227/output.json index 4c1f2d2844..52b9164d1a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0227/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0227/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}}, "errors": [ - "SyntaxError: Unexpected reserved word 'private' (1:37)" + "SyntaxError: Unexpected reserved word 'private'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0228/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0228/output.json index dcf994402a..f7dbc7b74c 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0228/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0228/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Unexpected reserved word 'protected' (1:37)" + "SyntaxError: Unexpected reserved word 'protected'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0229/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0229/output.json index c7306ecdb6..5e4ded19fd 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0229/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0229/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Unexpected reserved word 'public' (1:37)" + "SyntaxError: Unexpected reserved word 'public'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0230/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0230/output.json index 41fd579945..70f7e9670e 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0230/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0230/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}}, "errors": [ - "SyntaxError: Unexpected reserved word 'static' (1:37)" + "SyntaxError: Unexpected reserved word 'static'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0231/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0231/output.json index 52018c7cba..48dc58ff96 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0231/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0231/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":45}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (1:37)" + "SyntaxError: Unexpected reserved word 'yield'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0232/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0232/output.json index d714b3e28e..a6dab52e93 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0232/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0232/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}}, "errors": [ - "SyntaxError: Unexpected reserved word 'let' (1:37)" + "SyntaxError: Unexpected reserved word 'let'. (1:37)" ], "program": { "type": "Program", @@ -50,11 +50,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0233/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0233/output.json index 1605445790..fda02a2a3f 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0233/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0233/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "errors": [ - "SyntaxError: Binding 'static' in strict mode (1:15)" + "SyntaxError: Binding 'static' in strict mode. (1:15)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":25,"end":37,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":37}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0234/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0234/output.json index b184d58817..7f3b58f78a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0234/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0234/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Binding 'static' in strict mode (1:9)" + "SyntaxError: Binding 'static' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -32,11 +32,11 @@ "value": { "type": "DirectiveLiteral", "start":20,"end":32,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":32}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0235/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0235/output.json index 5704449178..8689725c89 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0235/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0235/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:9)" + "SyntaxError: Binding 'eval' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0236/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0236/output.json index 4f8e8d897e..7d2be8d578 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0236/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0236/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Binding 'arguments' in strict mode (1:9)" + "SyntaxError: Binding 'arguments' in strict mode. (1:9)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":24,"end":36,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":36}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0239/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0239/output.json index 07cfc93246..7feccdb115 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0239/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0239/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Unexpected reserved word 'static' (1:23)" + "SyntaxError: Unexpected reserved word 'static'. (1:23)" ], "program": { "type": "Program", @@ -36,11 +36,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0240/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0240/output.json index 3b77c9170b..3fba35b99d 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0240/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0240/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Argument name clash (1:14)" + "SyntaxError: Argument name clash. (1:14)" ], "program": { "type": "Program", @@ -43,11 +43,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0241/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0241/output.json index 0581517d99..55829c2b07 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0241/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0241/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:11)" + "SyntaxError: Binding 'eval' in strict mode. (1:11)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0242/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0242/output.json index aafa09421c..b82f2cea47 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0242/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0242/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Binding 'package' in strict mode (1:11)" + "SyntaxError: Binding 'package' in strict mode. (1:11)" ], "program": { "type": "Program", @@ -38,11 +38,11 @@ "value": { "type": "DirectiveLiteral", "start":22,"end":34,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":34}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0243/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0243/output.json index df3094e728..8cf993f513 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0243/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0243/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}}, "errors": [ - "SyntaxError: Argument name clash (1:43)" + "SyntaxError: Argument name clash. (1:43)" ], "program": { "type": "Program", @@ -66,11 +66,11 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0244/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0244/output.json index bcaf874206..8f987f7098 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0244/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0244/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Argument name clash (1:15)" + "SyntaxError: Argument name clash. (1:15)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":35,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":35}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, @@ -46,18 +50,14 @@ "value": { "type": "DirectiveLiteral", "start":20,"end":32,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":32}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0245/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0245/output.json index 65f5a908f0..688a01f586 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0245/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0245/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}}, "errors": [ - "SyntaxError: Argument name clash (1:44)" + "SyntaxError: Argument name clash. (1:44)" ], "program": { "type": "Program", @@ -31,6 +31,10 @@ "expression": { "type": "FunctionExpression", "start":30,"end":50,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":50}}, + "extra": { + "parenthesized": true, + "parenStart": 29 + }, "id": { "type": "Identifier", "start":39,"end":40,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":40},"identifierName":"b"}, @@ -55,10 +59,6 @@ "start":47,"end":50,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":50}}, "body": [], "directives": [] - }, - "extra": { - "parenthesized": true, - "parenStart": 29 } } } @@ -70,11 +70,11 @@ "value": { "type": "DirectiveLiteral", "start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0246/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0246/output.json index a1ab8b4653..911fe15b76 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0246/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0246/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Binding 'eval' in strict mode (1:12)" + "SyntaxError: Binding 'eval' in strict mode. (1:12)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":35,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":35}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, @@ -41,18 +45,14 @@ "value": { "type": "DirectiveLiteral", "start":20,"end":32,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":32}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0247/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0247/output.json index 7caed97929..44b440b91f 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0247/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0247/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Binding 'package' in strict mode (1:12)" + "SyntaxError: Binding 'package' in strict mode. (1:12)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "FunctionExpression", "start":1,"end":38,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":38}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "id": { "type": "Identifier", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"}, @@ -41,18 +45,14 @@ "value": { "type": "DirectiveLiteral", "start":23,"end":35,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":35}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] - }, - "extra": { - "parenthesized": true, - "parenStart": 0 } } } diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0248/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0248/output.json index df42b7ac7d..c2cdc94102 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0248/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0248/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Label '__proto__' is already declared (1:11)" + "SyntaxError: Label '__proto__' is already declared. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0249/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0249/output.json index 27c0fb2e3a..db0d9cecc3 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0249/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0249/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}}, "errors": [ - "SyntaxError: Argument name clash (1:36)" + "SyntaxError: Argument name clash. (1:36)" ], "program": { "type": "Program", @@ -47,11 +47,11 @@ "value": { "type": "DirectiveLiteral", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, - "value": "use strict", "extra": { "raw": "\"use strict\"", "rawValue": "use strict" - } + }, + "value": "use strict" } } ] diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0250/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0250/output.json index 5b2a545950..3feb9d6444 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0250/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0250/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Redefinition of __proto__ property (1:21)" + "SyntaxError: Redefinition of __proto__ property. (1:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0257/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0257/output.json index 1e257d6d4e..69e2395bdd 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0257/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0257/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Missing semicolon (1:15)", - "SyntaxError: Unexpected reserved word 'package' (1:16)" + "SyntaxError: Missing semicolon. (1:15)", + "SyntaxError: Unexpected reserved word 'package'. (1:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0258/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0258/options.json index 2e1b1cc3aa..8c60527068 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0258/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0258/options.json @@ -1,3 +1,3 @@ { - "throws": "Rest element must be last element (1:18)" -} + "throws": "Rest element must be last element. (1:18)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0261/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0261/options.json index ffd3a3ed26..85aa6e98c2 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0261/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0261/options.json @@ -1,3 +1,3 @@ { - "throws": "A class name is required (1:5)" -} + "throws": "A class name is required. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0262/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0262/options.json index ffd3a3ed26..85aa6e98c2 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0262/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0262/options.json @@ -1,3 +1,3 @@ { - "throws": "A class name is required (1:5)" -} + "throws": "A class name is required. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0263/options.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0263/options.json index ffd3a3ed26..85aa6e98c2 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0263/options.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0263/options.json @@ -1,3 +1,3 @@ { - "throws": "A class name is required (1:5)" -} + "throws": "A class name is required. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0270/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0270/output.json index cedce7bc2c..ad006272c6 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0270/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0270/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Classes may not have static property named prototype (1:16)" + "SyntaxError: Classes may not have static property named prototype. (1:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0271/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0271/output.json index 5d43814f16..bdba81ac68 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0271/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0271/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Classes may not have static property named prototype (1:16)" + "SyntaxError: Classes may not have static property named prototype. (1:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0272/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0272/output.json index ab3b4e1d0f..c4183d20d4 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0272/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0272/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Class constructor may not be an accessor (1:13)" + "SyntaxError: Class constructor may not be an accessor. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0273/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0273/output.json index 937104c770..c2ed8c94a6 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0273/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0273/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Class constructor may not be an accessor (1:13)" + "SyntaxError: Class constructor may not be an accessor. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0274/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0274/output.json index ed124fb20e..dadbac8f23 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0274/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0274/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}}, "errors": [ - "SyntaxError: Duplicate constructor in the same class (1:25)" + "SyntaxError: Duplicate constructor in the same class. (1:25)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0277/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0277/output.json index fbd8170142..d3fb225998 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0277/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0277/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected reserved word 'enum' (1:11)" + "SyntaxError: Unexpected reserved word 'enum'. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0278/output.json b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0278/output.json index d1c541915d..a7e182c36a 100644 --- a/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0278/output.json +++ b/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0278/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Unexpected reserved word 'static' (1:17)" + "SyntaxError: Unexpected reserved word 'static'. (1:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/rest-parameter/invalid-setter-rest/output.json b/packages/babel-parser/test/fixtures/esprima/rest-parameter/invalid-setter-rest/output.json index b36068b690..f402a16f0e 100644 --- a/packages/babel-parser/test/fixtures/esprima/rest-parameter/invalid-setter-rest/output.json +++ b/packages/babel-parser/test/fixtures/esprima/rest-parameter/invalid-setter-rest/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: setter function argument must not be a rest parameter (1:6)" + "SyntaxError: A 'set' accesor function argument must not be a rest parameter. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0002/output.json b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0002/output.json index 03c94d829a..0d4a94d65f 100644 --- a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0002/output.json +++ b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0002/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:1)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0003/output.json b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0003/output.json index f88db15c7f..353591d6e6 100644 --- a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0003/output.json +++ b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0003/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:2)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0004/output.json b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0004/output.json index 389c8a589f..58cbc5cfd1 100644 --- a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0004/output.json +++ b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0004/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:1)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0005/output.json b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0005/output.json index 389c8a589f..58cbc5cfd1 100644 --- a/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0005/output.json +++ b/packages/babel-parser/test/fixtures/esprima/statement-expression/migrated_0005/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Expecting Unicode escape sequence \\uXXXX (1:1)" + "SyntaxError: Expecting Unicode escape sequence \\uXXXX. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/esprima/statement-variable/complex-pattern-requires-init/output.json b/packages/babel-parser/test/fixtures/esprima/statement-variable/complex-pattern-requires-init/output.json index 0763ff9481..f2bc5ede10 100644 --- a/packages/babel-parser/test/fixtures/esprima/statement-variable/complex-pattern-requires-init/output.json +++ b/packages/babel-parser/test/fixtures/esprima/statement-variable/complex-pattern-requires-init/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Complex binding patterns require an initialization value (1:6)" + "SyntaxError: 'Complex binding patterns' require an initialization value. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/estree/object-method/invalid-setter/output.json b/packages/babel-parser/test/fixtures/estree/object-method/invalid-setter/output.json index 98c7c647bf..3a51c1e9b7 100644 --- a/packages/babel-parser/test/fixtures/estree/object-method/invalid-setter/output.json +++ b/packages/babel-parser/test/fixtures/estree/object-method/invalid-setter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: setter must have exactly one formal parameter (1:3)" + "SyntaxError: A 'set' accesor must have exactly one formal parameter. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/estree/typescript/getter-setter/output.json b/packages/babel-parser/test/fixtures/estree/typescript/getter-setter/output.json index 284b2c96b4..d1d64c9ddb 100644 --- a/packages/babel-parser/test/fixtures/estree/typescript/getter-setter/output.json +++ b/packages/babel-parser/test/fixtures/estree/typescript/getter-setter/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":85,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":18}}, "errors": [ - "SyntaxError: setter must have exactly one formal parameter (3:3)", - "SyntaxError: getter must not have any formal parameters (4:3)" + "SyntaxError: A 'set' accesor must have exactly one formal parameter. (3:3)", + "SyntaxError: A 'get' accesor must not have any formal parameters. (4:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-methods/failure-name-constructor/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-methods/failure-name-constructor/output.json index b1975e9de1..a0b8922b74 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-methods/failure-name-constructor/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-methods/failure-name-constructor/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have a private field named '#constructor' (2:2)" + "SyntaxError: Classes may not have a private field named '#constructor'. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-field/output.json index 365b9b97a9..af6eb7d2c5 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-get/output.json index dbd141f365..8dce1b38bc 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-method/output.json index 860696f144..b5862a6b81 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-set/output.json index fc48d9672d..fc60482872 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-instance-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-field/output.json index 6bdc11432e..6371085f10 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-get/output.json index 78af3bf7c7..18306486f9 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-method/output.json index 4d7e2c8824..04004e5598 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-set/output.json index 1267a637ac..7a8bc1a7c1 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-field-static-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-field/output.json index 326584989c..ca2586e44f 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-get/output.json index d1d6acb5f0..84443e5cf0 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-method/output.json index 995f7b0838..4abed739c4 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-field/output.json index 35d9b789e2..800e063a74 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-get/output.json index cb4da3ca45..eaa0136db4 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-method/output.json index af99874340..4d51640569 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-set/output.json index 42d1371ce7..0001d2c454 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-get-static-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-field/output.json index 122a0e829f..8aa9ca183d 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-get/output.json index 9c3051a380..b3aae8227d 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-method/output.json index 9e05934745..d22a6f3547 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-set/output.json index 792fec48d7..f2c66c8dc9 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-instance-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-field/output.json index 91b3df114c..d438c0b744 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-get/output.json index 9ee1d22c1b..d17e052870 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-method/output.json index 17a3f75931..928b9c09e3 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-set/output.json index f7d4c6d3a1..ea7346f0a1 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-method-static-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-field/output.json index f0e607109c..2a05ac112d 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-method/output.json index 816bb3ac14..93fbce6552 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-set/output.json index 6fe3015ccf..44d027de37 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-instance-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-field/output.json index 7c3c0b0a5e..5fe8a5e63e 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-get/output.json index ee2325e1bd..b3f7dcb8e0 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-method/output.json index fe58593dfb..7ad07d1436 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-set/output.json index e029e983ee..54b64e355c 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/instance-set-static-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-field/output.json index cf003ba438..03f017ec7c 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-get/output.json index d0f7aa76db..f3c0d841ff 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-method/output.json index b740b3d3bd..1678907e09 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-set/output.json index d4337b4f6d..840a1bf6db 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-instance-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-field/output.json index 4e1bc28f26..faa8169fb6 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-get/output.json index 82cf9bd9f5..a30c50be62 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-method/output.json index baad4ea0cd..2d24e647ce 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-set/output.json index 53103a600f..54b6269e86 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-field-static-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-field/output.json index 752fd3b1a7..76caf4c429 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-get/output.json index 35b89e8389..cd3bd92dac 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-method/output.json index c826d1bd51..3b91893b0a 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-set/output.json index e337e3d268..4f4e4e0da3 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-instance-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-field/output.json index 1039c1e056..beda39cd69 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-get/output.json index 6e37550db8..fcc69c94f9 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-method/output.json index 98629c2614..cff045c9cf 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-get-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-field/output.json index ebc7cc92dc..8c8bdac35c 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-get/output.json index e8403e51a8..b0da1b65c8 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-method/output.json index 2548111835..c1505e97d7 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-set/output.json index 0e28cc4938..6b0a3ba46f 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-instance-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-field/output.json index 4abec1e40b..205ca13bb4 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-get/output.json index 967cd567b4..1654037406 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-method/output.json index 3b74b77a4b..ae805a454a 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-set/output.json index b611d45935..01887d7bff 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-method-static-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-field/output.json index bbbd7d10be..159cc7f879 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-get/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-get/output.json index 0b33c76ec3..5774437e43 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-get/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-get/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-method/output.json index 3d2ee18645..3f134b2f84 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:2)" + "SyntaxError: Duplicate private name #x. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-set/output.json index 241a017c8e..656b974023 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-instance-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:6)" + "SyntaxError: Duplicate private name #x. (3:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-field/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-field/output.json index ae3787b174..77fe62df3d 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-method/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-method/output.json index 6df9c23ccf..aab46033b1 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:9)" + "SyntaxError: Duplicate private name #x. (3:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-set/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-set/output.json index dff968e979..7652f98bc5 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-set/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-names-duplicated/static-set-static-set/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Duplicate private name #x (3:13)" + "SyntaxError: Duplicate private name #x. (3:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-optional-private-property/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-optional-private-property/output.json index c616eec20e..a01ec11082 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-optional-private-property/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-optional-private-property/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Deleting a private field is not allowed (4:4)" + "SyntaxError: Deleting a private field is not allowed. (4:4)" ], "program": { "type": "Program", @@ -72,6 +72,7 @@ "type": "ThisExpression", "start":47,"end":51,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":15}} }, + "computed": false, "property": { "type": "PrivateName", "start":53,"end":55,"loc":{"start":{"line":4,"column":17},"end":{"line":4,"column":19}}, @@ -81,7 +82,6 @@ "name": "x" } }, - "computed": false, "optional": true } } diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-private-property/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-private-property/output.json index edd09ae38e..ed23f9c62a 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-private-property/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-delete-private-property/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":61,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Deleting a private field is not allowed (4:4)" + "SyntaxError: Deleting a private field is not allowed. (4:4)" ], "program": { "type": "Program", @@ -72,6 +72,7 @@ "type": "ThisExpression", "start":47,"end":51,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":15}} }, + "computed": false, "property": { "type": "PrivateName", "start":52,"end":54,"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":18}}, @@ -80,8 +81,7 @@ "start":53,"end":54,"loc":{"start":{"line":4,"column":17},"end":{"line":4,"column":18},"identifierName":"x"}, "name": "x" } - }, - "computed": false + } } } } diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-name-constructor/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-name-constructor/output.json index 56f268a847..cbc752f267 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-name-constructor/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-name-constructor/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have a private field named '#constructor' (2:2)" + "SyntaxError: Classes may not have a private field named '#constructor'. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-literal/options.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-literal/options.json index 2ba960820f..57e6697b16 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-literal/options.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-literal/options.json @@ -1,4 +1,6 @@ { - "throws": "Unexpected digit after hash token (2:2)", - "plugins": ["classPrivateProperties"] -} + "plugins": [ + "classPrivateProperties" + ], + "throws": "Unexpected digit after hash token. (2:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-start-identifier/options.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-start-identifier/options.json index 2ba960820f..57e6697b16 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-start-identifier/options.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-start-identifier/options.json @@ -1,4 +1,6 @@ { - "throws": "Unexpected digit after hash token (2:2)", - "plugins": ["classPrivateProperties"] -} + "plugins": [ + "classPrivateProperties" + ], + "throws": "Unexpected digit after hash token. (2:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-call/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-call/output.json index 8010b9a5b4..f487856e8e 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-call/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-call/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":95,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (4:13)" + "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (4:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-private-member-access/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-private-member-access/output.json index e1645e9fd5..c501bd6487 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-private-member-access/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/super-private-member-access/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: Private fields can't be accessed on super (5:4)" + "SyntaxError: Private fields can't be accessed on super. (5:4)" ], "program": { "type": "Program", @@ -71,6 +71,7 @@ "type": "Super", "start":44,"end":49,"loc":{"start":{"line":5,"column":4},"end":{"line":5,"column":9}} }, + "computed": false, "property": { "type": "PrivateName", "start":50,"end":52,"loc":{"start":{"line":5,"column":10},"end":{"line":5,"column":12}}, @@ -79,8 +80,7 @@ "start":51,"end":52,"loc":{"start":{"line":5,"column":11},"end":{"line":5,"column":12},"identifierName":"x"}, "name": "x" } - }, - "computed": false + } } } ], diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-nested/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-nested/output.json index 72c04ef4ff..95734dd97d 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-nested/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-nested/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Private name #priv is not defined (4:19)" + "SyntaxError: Private name #priv is not defined. (4:19)" ], "program": { "type": "Program", @@ -77,6 +77,7 @@ "start":42,"end":45,"loc":{"start":{"line":4,"column":15},"end":{"line":4,"column":18},"identifierName":"foo"}, "name": "foo" }, + "computed": false, "property": { "type": "PrivateName", "start":46,"end":51,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":24}}, @@ -85,8 +86,7 @@ "start":47,"end":51,"loc":{"start":{"line":4,"column":20},"end":{"line":4,"column":24},"identifierName":"priv"}, "name": "priv" } - }, - "computed": false + } } } ], diff --git a/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-top-level/output.json b/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-top-level/output.json index 6cc1bce625..5688387ca6 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-top-level/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-private-properties/undeclared-top-level/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Private name #priv is not defined (1:15)" + "SyntaxError: Private name #priv is not defined. (1:15)" ], "program": { "type": "Program", @@ -30,6 +30,7 @@ "start":11,"end":14,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":14},"identifierName":"foo"}, "name": "foo" }, + "computed": false, "property": { "type": "PrivateName", "start":15,"end":20,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":20}}, @@ -38,8 +39,7 @@ "start":16,"end":20,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":20},"identifierName":"priv"}, "name": "priv" } - }, - "computed": false + } } } ], diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-arrow-function/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-arrow-function/output.json index e4fcbae89a..9e1f3d4cb9 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":60,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: 'arguments' is only allowed in functions and class methods (3:16)" + "SyntaxError: 'arguments' is only allowed in functions and class methods. (3:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-nested-class-decorator-call-expression/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-nested-class-decorator-call-expression/output.json index a6645c3bef..9cf33d0715 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-nested-class-decorator-call-expression/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/arguments-in-nested-class-decorator-call-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":76,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: 'arguments' is only allowed in functions and class methods (3:25)" + "SyntaxError: 'arguments' is only allowed in functions and class methods. (3:25)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/arguments/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/arguments/output.json index 48d889e597..1b13199f02 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/arguments/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/arguments/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: 'arguments' is only allowed in functions and class methods (3:10)" + "SyntaxError: 'arguments' is only allowed in functions and class methods. (3:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/await-in-computed-property-in-params-of-async-arrow/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/await-in-computed-property-in-params-of-async-arrow/output.json index b2b40d6638..9cb65937fe 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/await-in-computed-property-in-params-of-async-arrow/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/await-in-computed-property-in-params-of-async-arrow/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside an async function (1:20)" + "SyntaxError: Can not use 'await' as identifier inside an async function. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/new-target-invalid/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/new-target-invalid/output.json index 166fd813da..cea1786454 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/new-target-invalid/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/new-target-invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: new.target can only be used in functions or class properties (1:8)" + "SyntaxError: `new.target` can only be used in functions. or class properties (1:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor-2/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor-2/output.json index 9d09ab7b33..2d8225d956 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor-2/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Classes may not have a field named 'constructor' (2:2)" + "SyntaxError: Classes may not have a field named 'constructor'. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor/output.json index 67687aa331..97fea08fde 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/no-ctor/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have a field named 'constructor' (2:2)" + "SyntaxError: Classes may not have a field named 'constructor'. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype-2/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype-2/output.json index 2850861ad8..e89879777c 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype-2/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Classes may not have static property named prototype (2:9)" + "SyntaxError: Classes may not have static property named prototype. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype/output.json index 2e1a73e973..7dc4267884 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/no-static-prototype/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have static property named prototype (2:9)" + "SyntaxError: Classes may not have static property named prototype. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/static-field-named-constructor/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/static-field-named-constructor/output.json index 789ddb0c28..ac7c551677 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/static-field-named-constructor/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/static-field-named-constructor/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have a field named 'constructor' (2:11)" + "SyntaxError: Classes may not have a field named 'constructor'. (2:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/super-call/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/super-call/output.json index e93888eeb6..06b7a38120 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/super-call/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/super-call/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":94,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (4:12)" + "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (4:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/super-inside-function/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/super-inside-function/output.json index c69a435a10..6b7dea14cf 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/super-inside-function/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/super-inside-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: super is only allowed in object methods and classes (3:4)" + "SyntaxError: 'super' is only allowed in object methods and classes. (3:4)" ], "program": { "type": "Program", @@ -61,12 +61,12 @@ "type": "Super", "start":38,"end":43,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":9}} }, + "computed": false, "property": { "type": "Identifier", "start":44,"end":45,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":11},"identifierName":"x"}, "name": "x" - }, - "computed": false + } }, "arguments": [] } diff --git a/packages/babel-parser/test/fixtures/experimental/class-properties/yield-in-class-property-in-generator/output.json b/packages/babel-parser/test/fixtures/experimental/class-properties/yield-in-class-property-in-generator/output.json index c50fc16839..2e1ffaf6cd 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-properties/yield-in-class-property-in-generator/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-properties/yield-in-class-property-in-generator/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":100,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (4:8)" + "SyntaxError: Unexpected reserved word 'yield'. (4:8)" ], "program": { "type": "Program", @@ -41,6 +41,13 @@ { "type": "ClassProperty", "start":79,"end":94,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":19}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " here yield is an identifier reference", + "start":34,"end":74,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":44}} + } + ], "static": false, "key": { "type": "Identifier", @@ -66,14 +73,7 @@ }, "value": 42 } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " here yield is an identifier reference", - "start":34,"end":74,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":44}} - } - ] + } } ] } diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/await-binding-in-static-block/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/await-binding-in-static-block/output.json index c3fb984ad5..122d4136db 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/await-binding-in-static-block/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/await-binding-in-static-block/output.json @@ -2,19 +2,19 @@ "type": "File", "start":0,"end":568,"loc":{"start":{"line":1,"column":0},"end":{"line":27,"column":34}}, "errors": [ - "SyntaxError: Can not use 'await' as identifier inside a static block (3:21)", - "SyntaxError: Can not use 'await' as identifier inside a static block (5:27)", - "SyntaxError: Can not use 'await' as identifier inside a static block (7:22)", - "SyntaxError: Can not use 'await' as identifier inside a static block (9:22)", - "SyntaxError: Can not use 'await' as identifier inside a static block (11:28)", - "SyntaxError: Can not use 'await' as identifier inside a static block (13:28)", - "SyntaxError: Can not use 'await' as identifier inside a static block (15:25)", - "SyntaxError: Can not use 'await' as identifier inside a static block (17:25)", - "SyntaxError: Can not use 'await' as identifier inside a static block (19:31)", - "SyntaxError: Can not use 'await' as identifier inside a static block (21:31)", - "SyntaxError: Can not use 'await' as identifier inside a static block (23:28)", - "SyntaxError: Can not use 'await' as identifier inside a static block (25:30)", - "SyntaxError: Can not use 'await' as identifier inside a static block (27:21)" + "SyntaxError: Can not use 'await' as identifier inside a static block. (3:21)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (5:27)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (7:22)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (9:22)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (11:28)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (13:28)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (15:25)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (17:25)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (19:31)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (21:31)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (23:28)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (25:30)", + "SyntaxError: Can not use 'await' as identifier inside a static block. (27:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-arguments/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-arguments/output.json index 3dd4e8af70..048195a802 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-arguments/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-arguments/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: 'arguments' is only allowed in functions and class methods (3:15)" + "SyntaxError: 'arguments' is only allowed in functions and class methods. (3:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-await/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-await/output.json index a5c0a305f2..d0835ad4eb 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-await/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-await/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":95,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":1}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (5:6)" + "SyntaxError: 'await' is only allowed within async functions. (5:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-break/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-break/output.json index 945a53080c..042851fc06 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-break/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-break/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":111,"loc":{"start":{"line":1,"column":0},"end":{"line":10,"column":1}}, "errors": [ - "SyntaxError: Unsyntactic break (6:8)" + "SyntaxError: Unsyntactic break. (6:8)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-continue/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-continue/output.json index e427962f49..3d13ff8490 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-continue/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-continue/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":84,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":1}}, "errors": [ - "SyntaxError: Unsyntactic continue (5:6)" + "SyntaxError: Unsyntactic continue. (5:6)" ], "program": { "type": "Program", @@ -82,4 +82,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-decorators/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-decorators/output.json index bd16de29ca..d9414a2148 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-decorators/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-decorators/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":76,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: Decorators can't be used with a static block (3:2)" + "SyntaxError: Decorators can't be used with a static block. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-decorators/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-decorators/output.json index bd16de29ca..d9414a2148 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-decorators/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-decorators/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":76,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: Decorators can't be used with a static block (3:2)" + "SyntaxError: Decorators can't be used with a static block. (3:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-octal/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-octal/output.json index e22e299283..87910943bb 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-octal/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-legacy-octal/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Legacy octal literals are not allowed in strict mode (4:4)" + "SyntaxError: Legacy octal literals are not allowed in strict mode. (4:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-return/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-return/output.json index 2f0fef2061..54615d3c48 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-return/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-return/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":61,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: 'return' outside of function (4:4)" + "SyntaxError: 'return' outside of function. (4:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-super-call/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-super-call/output.json index e07c019a7e..06b81b2d74 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-super-call/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-super-call/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":78,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (5:4)" + "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (5:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-yield/output.json b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-yield/output.json index a88cd81ff0..fd89e20968 100644 --- a/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-yield/output.json +++ b/packages/babel-parser/test/fixtures/experimental/class-static-block/invalid-yield/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":90,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":1}}, "errors": [ - "SyntaxError: Unexpected reserved word 'yield' (5:6)", - "SyntaxError: Missing semicolon (5:11)" + "SyntaxError: Unexpected reserved word 'yield'. (5:6)", + "SyntaxError: Missing semicolon. (5:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/options.json b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/options.json index 258615f550..ac9f6e0c29 100644 --- a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/options.json @@ -2,5 +2,5 @@ "plugins": [ "decimal" ], - "throws": "Invalid decimal (1:0)" + "throws": "Invalid decimal. (1:0)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-e/output.json b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-e/output.json index 1ae22702c1..e6de275ebd 100644 --- a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-e/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-e/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Invalid decimal (1:0)" + "SyntaxError: Invalid decimal. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-hexadecimal/options.json b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-hexadecimal/options.json index 258615f550..ac9f6e0c29 100644 --- a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-hexadecimal/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-hexadecimal/options.json @@ -2,5 +2,5 @@ "plugins": [ "decimal" ], - "throws": "Invalid decimal (1:0)" + "throws": "Invalid decimal. (1:0)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-non-octal-decimal-int/output.json b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-non-octal-decimal-int/output.json index 60c5dbd4f5..dd00c655c6 100644 --- a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-non-octal-decimal-int/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-non-octal-decimal-int/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Invalid decimal (1:0)" + "SyntaxError: Invalid decimal. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-legacy/output.json b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-legacy/output.json index 2c49c0fb79..2b5fe541e1 100644 --- a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-legacy/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-legacy/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid decimal (1:0)" + "SyntaxError: Invalid decimal. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-new/options.json b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-new/options.json index 258615f550..ac9f6e0c29 100644 --- a/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-new/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decimal/invalid-octal-new/options.json @@ -2,5 +2,5 @@ "plugins": [ "decimal" ], - "throws": "Invalid decimal (1:0)" + "throws": "Invalid decimal. (1:0)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-export-default-decorated-expression-without-parens/output.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-export-default-decorated-expression-without-parens/output.json index 083fa746f9..ac182855aa 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-export-default-decorated-expression-without-parens/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-export-default-decorated-expression-without-parens/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}}, "errors": [ - "SyntaxError: 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)" + "SyntaxError: 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)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-true-decorator-after-export/options.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-true-decorator-after-export/options.json index 8fc06b1b8c..fb8aa087e8 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-true-decorator-after-export/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/decoratorsBeforeExport-true-decorator-after-export/options.json @@ -1,5 +1,12 @@ { + "plugins": [ + [ + "decorators", + { + "decoratorsBeforeExport": true + } + ] + ], "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)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-class-method-parameter/output.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-class-method-parameter/output.json index fd172b86c4..30ccb90fa3 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-class-method-parameter/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-class-method-parameter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Decorators cannot be used to decorate parameters (2:14)" + "SyntaxError: Decorators cannot be used to decorate parameters. (2:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-function-parameters/output.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-function-parameters/output.json index 47d78bbffa..517d01cda9 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-function-parameters/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-function-parameters/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Decorators cannot be used to decorate parameters (1:14)" + "SyntaxError: Decorators cannot be used to decorate parameters. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-method-parameters/output.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-method-parameters/output.json index ab145b8510..6c325f5f3e 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-method-parameters/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-method-parameters/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}}, "errors": [ - "SyntaxError: Decorators cannot be used to decorate parameters (2:9)" + "SyntaxError: Decorators cannot be used to decorate parameters. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-methods/output.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-methods/output.json index 1268657c20..f56e953346 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-methods/output.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-object-methods/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Decorators cannot be used to decorate object literal properties (2:2)" + "SyntaxError: Decorators cannot be used to decorate object literal properties. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-semi/options.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-semi/options.json index ffac21b695..82f0c2e573 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/no-semi/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/no-semi/options.json @@ -1,3 +1,11 @@ { - "throws": "Decorators must not be followed by a semicolon (2:5)" -} + "plugins": [ + [ + "decorators", + { + "decoratorsBeforeExport": false + } + ] + ], + "throws": "Decorators must not be followed by a semicolon. (2:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-1/options.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-1/options.json index 9fc4104fb3..adcec8cd50 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-1/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-1/options.json @@ -1,3 +1,11 @@ { - "throws": "Leading decorators must be attached to a class declaration (1:6)" -} + "plugins": [ + [ + "decorators", + { + "decoratorsBeforeExport": false + } + ] + ], + "throws": "Leading decorators must be attached to a class declaration. (1:6)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-2/options.json b/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-2/options.json index 9fc4104fb3..adcec8cd50 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-2/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators-2/restricted-2/options.json @@ -1,3 +1,11 @@ { - "throws": "Leading decorators must be attached to a class declaration (1:6)" -} + "plugins": [ + [ + "decorators", + { + "decoratorsBeforeExport": false + } + ] + ], + "throws": "Leading decorators must be attached to a class declaration. (1:6)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators-without-class/options.json b/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators-without-class/options.json index b1e699b351..9ced77d44e 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators-without-class/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators-without-class/options.json @@ -2,6 +2,6 @@ "plugins": [ "decorators-legacy" ], - "throws": "A decorated export must export a class declaration (2:0)", + "throws": "A decorated export must export a class declaration. (2:0)", "sourceType": "module" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators/options.json b/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators/options.json index b1e699b351..9ced77d44e 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators/no-export-decorators/options.json @@ -2,6 +2,6 @@ "plugins": [ "decorators-legacy" ], - "throws": "A decorated export must export a class declaration (2:0)", + "throws": "A decorated export must export a class declaration. (2:0)", "sourceType": "module" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/decorators/no-semi/options.json b/packages/babel-parser/test/fixtures/experimental/decorators/no-semi/options.json index ffac21b695..1f5a9fbe70 100644 --- a/packages/babel-parser/test/fixtures/experimental/decorators/no-semi/options.json +++ b/packages/babel-parser/test/fixtures/experimental/decorators/no-semi/options.json @@ -1,3 +1,8 @@ { - "throws": "Decorators must not be followed by a semicolon (2:5)" -} + "plugins": [ + [ + "decorators-legacy" + ] + ], + "throws": "Decorators must not be followed by a semicolon. (2:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/dynamic-import/invalid-lone-import/output.json b/packages/babel-parser/test/fixtures/experimental/dynamic-import/invalid-lone-import/output.json index 37e56eeb13..aa1370dee8 100644 --- a/packages/babel-parser/test/fixtures/experimental/dynamic-import/invalid-lone-import/output.json +++ b/packages/babel-parser/test/fixtures/experimental/dynamic-import/invalid-lone-import/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: import can only be used in import() or import.meta (1:1)" + "SyntaxError: `import` can only be used in `import()` or `import.meta`. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/export-extensions/invalid-default-from-identifier/output.json b/packages/babel-parser/test/fixtures/experimental/export-extensions/invalid-default-from-identifier/output.json index cc0e24e848..5ddf61e3c7 100644 --- a/packages/babel-parser/test/fixtures/experimental/export-extensions/invalid-default-from-identifier/output.json +++ b/packages/babel-parser/test/fixtures/experimental/export-extensions/invalid-default-from-identifier/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: 'from' is not allowed as an identifier after 'export default' (1:15)" + "SyntaxError: 'from' is not allowed as an identifier after 'export default'. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/function-sent/enabled-function-keyword-declaration/output.json b/packages/babel-parser/test/fixtures/experimental/function-sent/enabled-function-keyword-declaration/output.json index eaab0f905b..4909ee0409 100644 --- a/packages/babel-parser/test/fixtures/experimental/function-sent/enabled-function-keyword-declaration/output.json +++ b/packages/babel-parser/test/fixtures/experimental/function-sent/enabled-function-keyword-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Missing semicolon (2:17)" + "SyntaxError: Missing semicolon. (2:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/incorrect-arity/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/incorrect-arity/output.json index de469d3cab..bfd8760dcd 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/incorrect-arity/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/incorrect-arity/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":65}}, "errors": [ - "SyntaxError: import() requires exactly one or two arguments (1:0)", - "SyntaxError: import() requires exactly one or two arguments (2:0)" + "SyntaxError: `import()` requires exactly one or two arguments. (1:0)", + "SyntaxError: `import()` requires exactly one or two arguments. (2:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-escaped-assert/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-escaped-assert/output.json index 31284550fd..fcc951faa1 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-escaped-assert/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-escaped-assert/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}}, "errors": [ - "SyntaxError: Missing semicolon (1:12)", - "SyntaxError: Missing semicolon (1:24)" + "SyntaxError: Missing semicolon. (1:12)", + "SyntaxError: Missing semicolon. (1:24)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-export-without-from/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-export-without-from/output.json index 682ac330eb..8e0546403d 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-export-without-from/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-export-without-from/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":39}}, "errors": [ - "SyntaxError: Missing semicolon (2:14)", - "SyntaxError: Missing semicolon (2:21)" + "SyntaxError: Missing semicolon. (2:14)", + "SyntaxError: Missing semicolon. (2:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-spread-element-import-call/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-spread-element-import-call/output.json index f016f97336..73e6a01ff0 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-spread-element-import-call/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-spread-element-import-call/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: ... is not allowed in import() (1:21)" + "SyntaxError: `...` is not allowed in `import()`. (1:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type-string/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type-string/output.json index b6c67e2e6d..6e8521a045 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type-string/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type-string/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":81,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":81}}, "errors": [ - "SyntaxError: Duplicate key \"type\" is not allowed in module attributes (1:52)", - "SyntaxError: Duplicate key \"type\" is not allowed in module attributes (1:66)" + "SyntaxError: Duplicate key \"type\" is not allowed in module attributes. (1:52)", + "SyntaxError: Duplicate key \"type\" is not allowed in module attributes. (1:66)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type/output.json index 5d8f1cee0e..4b9130a197 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/invalid-syntax-with-repeated-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":65,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":65}}, "errors": [ - "SyntaxError: Duplicate key \"type\" is not allowed in module attributes (1:50)" + "SyntaxError: Duplicate key \"type\" is not allowed in module attributes. (1:50)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/string-literal/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/string-literal/output.json index 31e3705afb..dce442f8ff 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/string-literal/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/string-literal/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":101,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":52}}, "errors": [ - "SyntaxError: The only accepted module attribute is `type` (1:36)", - "SyntaxError: The only accepted module attribute is `type` (2:40)" + "SyntaxError: The only accepted module attribute is `type`. (1:36)", + "SyntaxError: The only accepted module attribute is `type`. (2:40)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-invalid-value/options.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-invalid-value/options.json index 8fde8e5bc0..274b43a4b5 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-invalid-value/options.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-invalid-value/options.json @@ -5,5 +5,5 @@ ] ], "sourceType": "module", - "throws": "Only string literals are allowed as module attribute values (1:60)" + "throws": "Only string literals are allowed as module attribute values. (1:60)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-no-type-attribute/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-no-type-attribute/output.json index c728fc2231..487d980a1d 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-no-type-attribute/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-no-type-attribute/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":55}}, "errors": [ - "SyntaxError: The only accepted module attribute is `type` (1:40)" + "SyntaxError: The only accepted module attribute is `type`. (1:40)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-object-method-attribute/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-object-method-attribute/output.json index 7a44aa2b8d..d17d1e8bd1 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-object-method-attribute/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-object-method-attribute/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":79,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":79}}, "errors": [ - "SyntaxError: The only accepted module attribute is `type` (1:54)" + "SyntaxError: The only accepted module attribute is `type`. (1:54)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-repeated-type/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-repeated-type/output.json index 4c24d416cc..027b2393ea 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-repeated-type/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-repeated-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":69,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":69}}, "errors": [ - "SyntaxError: Duplicate key \"type\" is not allowed in module attributes (1:54)" + "SyntaxError: Duplicate key \"type\" is not allowed in module attributes. (1:54)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-invalid-value/options.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-invalid-value/options.json index a1951fb946..c70777c18c 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-invalid-value/options.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-invalid-value/options.json @@ -5,5 +5,5 @@ ] ], "sourceType": "module", - "throws": "Only string literals are allowed as module attribute values (1:56)" + "throws": "Only string literals are allowed as module attribute values. (1:56)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-no-type-attribute/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-no-type-attribute/output.json index 69a02fc586..1328bd89fc 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-no-type-attribute/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-no-type-attribute/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}}, "errors": [ - "SyntaxError: The only accepted module attribute is `type` (1:36)" + "SyntaxError: The only accepted module attribute is `type`. (1:36)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-object-method-attribute/output.json b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-object-method-attribute/output.json index 4259ecc0ee..d29b9970cd 100644 --- a/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-object-method-attribute/output.json +++ b/packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-with-object-method-attribute/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":75}}, "errors": [ - "SyntaxError: The only accepted module attribute is `type` (1:50)" + "SyntaxError: The only accepted module attribute is `type`. (1:50)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-attributes/import-with-statement/output.json b/packages/babel-parser/test/fixtures/experimental/module-attributes/import-with-statement/output.json index cccb9e1b32..3cf88fc563 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-attributes/import-with-statement/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-attributes/import-with-statement/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: 'with' in strict mode (2:0)" + "SyntaxError: 'with' in strict mode. (2:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-attributes/incorrect-arity/output.json b/packages/babel-parser/test/fixtures/experimental/module-attributes/incorrect-arity/output.json index fbc2d14ad5..c6d5c8559d 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-attributes/incorrect-arity/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-attributes/incorrect-arity/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":73,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":63}}, "errors": [ - "SyntaxError: import() requires exactly one or two arguments (1:0)", - "SyntaxError: import() requires exactly one or two arguments (2:0)" + "SyntaxError: `import()` requires exactly one or two arguments. (1:0)", + "SyntaxError: `import()` requires exactly one or two arguments. (2:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-attributes/invalid-spread-element-import-call/output.json b/packages/babel-parser/test/fixtures/experimental/module-attributes/invalid-spread-element-import-call/output.json index f016f97336..73e6a01ff0 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-attributes/invalid-spread-element-import-call/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-attributes/invalid-spread-element-import-call/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: ... is not allowed in import() (1:21)" + "SyntaxError: `...` is not allowed in `import()`. (1:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-invalid-value/options.json b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-invalid-value/options.json index f21e649b0f..31598c9503 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-invalid-value/options.json +++ b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-invalid-value/options.json @@ -8,5 +8,5 @@ ] ], "sourceType": "module", - "throws": "Only string literals are allowed as module attribute values (1:52)" + "throws": "Only string literals are allowed as module attribute values. (1:52)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-no-type-attribute/output.json b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-no-type-attribute/output.json index a3bbfd6215..6791eb2536 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-no-type-attribute/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-no-type-attribute/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":45}}, "errors": [ - "SyntaxError: The only accepted module attribute is `type` (1:32)" + "SyntaxError: The only accepted module attribute is `type`. (1:32)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-object-method-attribute/output.json b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-object-method-attribute/output.json index 12af675ae8..6c04f786b8 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-object-method-attribute/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-object-method-attribute/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":69,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":69}}, "errors": [ - "SyntaxError: The only accepted module attribute is `type` (1:46)" + "SyntaxError: The only accepted module attribute is `type`. (1:46)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-repeated-type/output.json b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-repeated-type/output.json index ad53ece6e4..cfa3028cc0 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-repeated-type/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-attributes/valid-syntax-with-repeated-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":59}}, "errors": [ - "SyntaxError: Duplicate key \"type\" is not allowed in module attributes (1:46)" + "SyntaxError: Duplicate key \"type\" is not allowed in module attributes. (1:46)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-await-label-in-module-blocks/output.json b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-await-label-in-module-blocks/output.json index 5b7d9f6731..d6e97dfea9 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-await-label-in-module-blocks/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-await-label-in-module-blocks/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Unexpected reserved word 'await' (1:9)" + "SyntaxError: Unexpected reserved word 'await'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-class-in-module-blocks/output.json b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-class-in-module-blocks/output.json index 86b7e8c0c9..3326a47bcd 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-class-in-module-blocks/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-class-in-module-blocks/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":73,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: Private name #p is not defined (4:22)" + "SyntaxError: Private name #p is not defined. (4:22)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks01/output.json b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks01/output.json index 571c2383d6..433158e333 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks01/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks01/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Export 'foo' is not defined (2:11)" + "SyntaxError: Export 'foo' is not defined. (2:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks02/output.json b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks02/output.json index bd11a6632a..4da2538996 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks02/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks02/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Export 'foo' is not defined (3:11)" + "SyntaxError: Export 'foo' is not defined. (3:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/module-string-names/export-name-has-lone-surrogate/output.json b/packages/babel-parser/test/fixtures/experimental/module-string-names/export-name-has-lone-surrogate/output.json index 8beba46012..858ff90483 100644 --- a/packages/babel-parser/test/fixtures/experimental/module-string-names/export-name-has-lone-surrogate/output.json +++ b/packages/babel-parser/test/fixtures/experimental/module-string-names/export-name-has-lone-surrogate/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":127,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":52}}, "errors": [ - "SyntaxError: An export name cannot include a lone surrogate, found '\\ud800' (2:16)" + "SyntaxError: An export name cannot include a lone surrogate, found '\\ud800'. (2:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/partial-application/in-SuperCall/output.json b/packages/babel-parser/test/fixtures/experimental/partial-application/in-SuperCall/output.json index f92740eabc..2c97911929 100644 --- a/packages/babel-parser/test/fixtures/experimental/partial-application/in-SuperCall/output.json +++ b/packages/babel-parser/test/fixtures/experimental/partial-application/in-SuperCall/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":86,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Unexpected argument placeholder (3:16)", - "SyntaxError: Unexpected argument placeholder (3:19)" + "SyntaxError: Unexpected argument placeholder. (3:16)", + "SyntaxError: Unexpected argument placeholder. (3:19)" ], "program": { "type": "Program", @@ -103,12 +103,12 @@ "type": "ThisExpression", "start":69,"end":73,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":8}} }, + "computed": false, "property": { "type": "Identifier", "start":74,"end":75,"loc":{"start":{"line":4,"column":9},"end":{"line":4,"column":10},"identifierName":"x"}, "name": "x" - }, - "computed": false + } }, "right": { "type": "Identifier", diff --git a/packages/babel-parser/test/fixtures/experimental/partial-application/in-new/output.json b/packages/babel-parser/test/fixtures/experimental/partial-application/in-new/output.json index 6b08f2e6eb..2f6afad780 100644 --- a/packages/babel-parser/test/fixtures/experimental/partial-application/in-new/output.json +++ b/packages/babel-parser/test/fixtures/experimental/partial-application/in-new/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected argument placeholder (1:11)", - "SyntaxError: Unexpected argument placeholder (1:17)" + "SyntaxError: Unexpected argument placeholder. (1:11)", + "SyntaxError: Unexpected argument placeholder. (1:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-ban-await-f/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-ban-await-f/output.json index f62c456f95..7f9de01c82 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-ban-await-f/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-ban-await-f/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Missing semicolon (2:19)" + "SyntaxError: Missing semicolon. (2:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-invalid-primary-topic/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-invalid-primary-topic/output.json index 6c724302e0..699e25b015 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-invalid-primary-topic/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-fsharp-invalid-primary-topic/output.json @@ -3,7 +3,7 @@ "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ "SyntaxError: Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option. (1:5)", - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:5)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await-f/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await-f/options.json index 98b0d71d08..5833aa6792 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await-f/options.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await-f/options.json @@ -1,4 +1,11 @@ { - "plugins": [["pipelineOperator", { "proposal": "minimal" }]], - "throws": "Unexpected \"await\" after pipeline body; await must have parentheses in minimal proposal (2:14)" -} + "plugins": [ + [ + "pipelineOperator", + { + "proposal": "minimal" + } + ] + ], + "throws": "Unexpected \"await\" after pipeline body; await must have parentheses in minimal proposal. (2:14)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await/options.json index 98b0d71d08..5833aa6792 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await/options.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-minimal-ban-await/options.json @@ -1,4 +1,11 @@ { - "plugins": [["pipelineOperator", { "proposal": "minimal" }]], - "throws": "Unexpected \"await\" after pipeline body; await must have parentheses in minimal proposal (2:14)" -} + "plugins": [ + [ + "pipelineOperator", + { + "proposal": "minimal" + } + ] + ], + "throws": "Unexpected \"await\" after pipeline body; await must have parentheses in minimal proposal. (2:14)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-bare-style,-head-with-topic-reference-pair/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-bare-style,-head-with-topic-reference-pair/output.json index 21cf0ef977..5cf158b587 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-bare-style,-head-with-topic-reference-pair/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-bare-style,-head-with-topic-reference-pair/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Pipeline head should not be a comma-separated sequence expression (1:0)" + "SyntaxError: Pipeline head should not be a comma-separated sequence expression. (1:0)" ], "program": { "type": "Program", @@ -19,6 +19,10 @@ "left": { "type": "SequenceExpression", "start":1,"end":5,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":5}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "expressions": [ { "type": "NumericLiteral", @@ -38,11 +42,7 @@ }, "value": 2 } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] }, "operator": "|>", "right": { diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-invalid-hash-token,-followed-by-digit/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-invalid-hash-token,-followed-by-digit/options.json index a2f6f625f9..71621d6348 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-invalid-hash-token,-followed-by-digit/options.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-invalid-hash-token,-followed-by-digit/options.json @@ -1,4 +1,11 @@ { - "plugins": [["pipelineOperator", { "proposal": "smart" }]], - "throws": "Unexpected digit after hash token (1:5)" -} + "plugins": [ + [ + "pipelineOperator", + { + "proposal": "smart" + } + ] + ], + "throws": "Unexpected digit after hash token. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-bare-style,-no-outer-topic-reference/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-bare-style,-no-outer-topic-reference/output.json index d7262f7ab7..58b07efb5a 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-bare-style,-no-outer-topic-reference/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-bare-style,-no-outer-topic-reference/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:5)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:5)" ], "program": { "type": "Program", @@ -28,6 +28,10 @@ "expression": { "type": "ArrowFunctionExpression", "start":6,"end":17,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":17}}, + "extra": { + "parenthesized": true, + "parenStart": 5 + }, "id": null, "generator": false, "async": false, @@ -56,10 +60,6 @@ "name": "f" } } - }, - "extra": { - "parenthesized": true, - "parenStart": 5 } } } diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-inner-topic-reference/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-inner-topic-reference/output.json index e8ce055d0d..0a12a16ad6 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-inner-topic-reference/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-inner-topic-reference/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:16)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:16)" ], "program": { "type": "Program", @@ -28,6 +28,10 @@ "expression": { "type": "ArrowFunctionExpression", "start":6,"end":21,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":21}}, + "extra": { + "parenthesized": true, + "parenStart": 5 + }, "id": null, "generator": false, "async": false, @@ -69,10 +73,6 @@ } } } - }, - "extra": { - "parenthesized": true, - "parenStart": 5 } } } diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-outer-topic-reference/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-outer-topic-reference/output.json index 1c55597d1e..0f4ff29592 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-outer-topic-reference/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-arrow-function-with-topic-style,-no-outer-topic-reference/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:5)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:5)" ], "program": { "type": "Program", @@ -28,6 +28,10 @@ "expression": { "type": "ArrowFunctionExpression", "start":6,"end":17,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":17}}, + "extra": { + "parenthesized": true, + "parenStart": 5 + }, "id": null, "generator": false, "async": false, @@ -55,10 +59,6 @@ "start":16,"end":17,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}} } } - }, - "extra": { - "parenthesized": true, - "parenStart": 5 } } } diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-inner-topic-reference/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-inner-topic-reference/output.json index 4e08420cc8..76621d804b 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-inner-topic-reference/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-inner-topic-reference/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:11)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:11)" ], "program": { "type": "Program", @@ -28,6 +28,10 @@ "expression": { "type": "BinaryExpression", "start":6,"end":14,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":14}}, + "extra": { + "parenthesized": true, + "parenStart": 5 + }, "left": { "type": "PipelinePrimaryTopicReference", "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7}} @@ -46,10 +50,6 @@ }, "arguments": [] } - }, - "extra": { - "parenthesized": true, - "parenStart": 5 } } } diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-outer-topic-reference/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-outer-topic-reference/output.json index 9c89df8ebf..3d5dd55ce1 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-outer-topic-reference/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-nested-pipelines,-topic-style-with-inner-topic-style,-no-outer-topic-reference/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:5)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:5)" ], "program": { "type": "Program", @@ -28,6 +28,10 @@ "expression": { "type": "BinaryExpression", "start":6,"end":12,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":12}}, + "extra": { + "parenthesized": true, + "parenStart": 5 + }, "left": { "type": "Identifier", "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"$"}, @@ -42,10 +46,6 @@ "start":11,"end":12,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":12},"identifierName":"f"}, "name": "f" } - }, - "extra": { - "parenthesized": true, - "parenStart": 5 } } } diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-followed-by-bare-style-pipeline-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-followed-by-bare-style-pipeline-body/output.json index f4a75092e3..c6eec8dc71 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-followed-by-bare-style-pipeline-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-followed-by-bare-style-pipeline-body/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Pipeline body may not be a comma-separated sequence expression (1:6)" + "SyntaxError: Pipeline body may not be a comma-separated sequence expression. (1:6)" ], "program": { "type": "Program", @@ -35,6 +35,10 @@ "expression": { "type": "SequenceExpression", "start":7,"end":11,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":11}}, + "extra": { + "parenthesized": true, + "parenStart": 6 + }, "expressions": [ { "type": "PipelinePrimaryTopicReference", @@ -44,11 +48,7 @@ "type": "PipelinePrimaryTopicReference", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11}} } - ], - "extra": { - "parenthesized": true, - "parenStart": 6 - } + ] } } }, diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-then-end/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-then-end/output.json index c774d9cb44..ae82401e52 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-then-end/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-sequence-style,-body-with-topic-reference-pair-then-end/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Pipeline body may not be a comma-separated sequence expression (1:6)" + "SyntaxError: Pipeline body may not be a comma-separated sequence expression. (1:6)" ], "program": { "type": "Program", @@ -32,6 +32,10 @@ "expression": { "type": "SequenceExpression", "start":7,"end":11,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":11}}, + "extra": { + "parenthesized": true, + "parenStart": 6 + }, "expressions": [ { "type": "PipelinePrimaryTopicReference", @@ -41,11 +45,7 @@ "type": "PipelinePrimaryTopicReference", "start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11}} } - ], - "extra": { - "parenthesized": true, - "parenStart": 6 - } + ] } } } diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-computed,-no-topic-reference/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-computed,-no-topic-reference/output.json index 556699d07a..98c5ae1ab6 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-computed,-no-topic-reference/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-computed,-no-topic-reference/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", @@ -33,12 +33,12 @@ "start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"a"}, "name": "a" }, + "computed": true, "property": { "type": "Identifier", "start":11,"end":12,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":12},"identifierName":"b"}, "name": "b" - }, - "computed": true + } } } } diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-addition/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-addition/output.json index 6e09acd357..03a4f94e33 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-addition/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-addition/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-class-expression/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-class-expression/output.json index 4c0d88c5a7..bb0ec03e3a 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-class-expression/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-class-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-function-expression/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-function-expression/output.json index 18fa5a9166..a2a9389e68 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-function-expression/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-no-topic-reference,-function-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}, "errors": [ - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-do-while-loop,-outer-topic-reference-in-loop-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-do-while-loop,-outer-topic-reference-in-loop-body/output.json index 06a45df42f..3363e00e6d 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-do-while-loop,-outer-topic-reference-in-loop-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-do-while-loop,-outer-topic-reference-in-loop-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:22)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:22)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-await-of-loop,-outer-topic-reference-in-loop-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-await-of-loop,-outer-topic-reference-in-loop-body/output.json index e673a7df67..e77303e8aa 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-await-of-loop,-outer-topic-reference-in-loop-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-await-of-loop,-outer-topic-reference-in-loop-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":77,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (2:48)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (2:11)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (2:48)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (2:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-classic-loop,-outer-topic-reference-in-loop-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-classic-loop,-outer-topic-reference-in-loop-body/output.json index b413aeb837..b593175700 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-classic-loop,-outer-topic-reference-in-loop-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-classic-loop,-outer-topic-reference-in-loop-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:45)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:45)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-in-loop,-outer-topic-reference-in-loop-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-in-loop,-outer-topic-reference-in-loop-body/output.json index f907f6c39b..1093dabf11 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-in-loop,-outer-topic-reference-in-loop-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-in-loop,-outer-topic-reference-in-loop-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:32)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:32)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-of-loop,-outer-topic-reference-in-loop-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-of-loop,-outer-topic-reference-in-loop-body/output.json index b5610cbd55..7f5b97a418 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-of-loop,-outer-topic-reference-in-loop-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-of-loop,-outer-topic-reference-in-loop-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:34)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:34)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-try-statement,-outer-topic-reference-in-catch-clause/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-try-statement,-outer-topic-reference-in-catch-clause/output.json index cd596f541b..344da50b5d 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-try-statement,-outer-topic-reference-in-catch-clause/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-try-statement,-outer-topic-reference-in-catch-clause/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":78,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (3:32)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (3:32)" ], "program": { "type": "Program", @@ -53,12 +53,12 @@ "start":22,"end":26,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":12},"identifierName":"JSON"}, "name": "JSON" }, + "computed": false, "property": { "type": "Identifier", "start":27,"end":32,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":18},"identifierName":"parse"}, "name": "parse" - }, - "computed": false + } }, "arguments": [ { @@ -97,12 +97,12 @@ "start":57,"end":64,"loc":{"start":{"line":3,"column":18},"end":{"line":3,"column":25},"identifierName":"console"}, "name": "console" }, + "computed": false, "property": { "type": "Identifier", "start":65,"end":70,"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":31},"identifierName":"error"}, "name": "error" - }, - "computed": false + } }, "arguments": [ { diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-while-loop,-outer-topic-reference-in-loop-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-while-loop,-outer-topic-reference-in-loop-body/output.json index cde715cc8a..e36e609e28 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-while-loop,-outer-topic-reference-in-loop-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-while-loop,-outer-topic-reference-in-loop-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:34)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:34)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-with-statement,-outer-topic-reference-in-with-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-with-statement,-outer-topic-reference-in-with-body/output.json index 10719f0083..b12167e9c6 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-with-statement,-outer-topic-reference-in-with-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-with-statement,-outer-topic-reference-in-with-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:24)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:9)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:24)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unparenthesized-arrow-function-with-bare-parameter-and-bare-body/options.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unparenthesized-arrow-function-with-bare-parameter-and-bare-body/options.json index a684795fbf..c4d1cfc53f 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unparenthesized-arrow-function-with-bare-parameter-and-bare-body/options.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unparenthesized-arrow-function-with-bare-parameter-and-bare-body/options.json @@ -1,4 +1,11 @@ { - "plugins": [["pipelineOperator", { "proposal": "smart" }]], - "throws": "Unexpected arrow \"=>\" after pipeline body; arrow function in pipeline body must be parenthesized (1:8)" -} + "plugins": [ + [ + "pipelineOperator", + { + "proposal": "smart" + } + ] + ], + "throws": "Unexpected arrow \"=>\" after pipeline body; arrow function in pipeline body must be parenthesized. (1:8)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-class-in-pipeline-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-class-in-pipeline-body/output.json index 499705448d..dcf7d7105d 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-class-in-pipeline-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-class-in-pipeline-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":45}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:39)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:5)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:39)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:5)" ], "program": { "type": "Program", @@ -68,12 +68,12 @@ "type": "ThisExpression", "start":30,"end":34,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":34}} }, + "computed": false, "property": { "type": "Identifier", "start":35,"end":36,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":36},"identifierName":"x"}, "name": "x" - }, - "computed": false + } }, "right": { "type": "PipelinePrimaryTopicReference", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-function-in-pipeline-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-function-in-pipeline-body/output.json index 1aa91e74b1..88eb526ee2 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-function-in-pipeline-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-inner-function-in-pipeline-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:19)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:5)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:19)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-pipeline-head-in-inner-function-in-pipeline-body/output.json b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-pipeline-head-in-inner-function-in-pipeline-body/output.json index 6c2b7a1acf..9e45ecfa0c 100644 --- a/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-pipeline-head-in-inner-function-in-pipeline-body/output.json +++ b/packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-unbound-topic,-pipeline-head-in-inner-function-in-pipeline-body/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Topic reference was used in a lexical context without topic binding (1:19)", - "SyntaxError: Pipeline is in topic style but does not use topic reference (1:5)" + "SyntaxError: Topic reference was used in a lexical context without topic binding. (1:19)", + "SyntaxError: Pipeline is in topic style but does not use topic reference. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-left/output.json b/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-left/output.json index d641de74a7..bb4be6f0b8 100644 --- a/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-left/output.json +++ b/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-left/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`) (4:7)" + "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`). (4:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-right/output.json b/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-right/output.json index b6dd5e0efd..937249312e 100644 --- a/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-right/output.json +++ b/packages/babel-parser/test/fixtures/experimental/private-in/private-binary-expression-right/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`) (4:10)" + "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`). (4:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/private-in/private-expression/output.json b/packages/babel-parser/test/fixtures/experimental/private-in/private-expression/output.json index f690ece039..0c4896736e 100644 --- a/packages/babel-parser/test/fixtures/experimental/private-in/private-expression/output.json +++ b/packages/babel-parser/test/fixtures/experimental/private-in/private-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`) (4:6)" + "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`). (4:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/private-in/private-in-parenthesized/output.json b/packages/babel-parser/test/fixtures/experimental/private-in/private-in-parenthesized/output.json index fa97d8cdcf..b6196e5fc6 100644 --- a/packages/babel-parser/test/fixtures/experimental/private-in/private-in-parenthesized/output.json +++ b/packages/babel-parser/test/fixtures/experimental/private-in/private-in-parenthesized/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`) (4:7)" + "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`). (4:7)" ], "program": { "type": "Program", @@ -74,14 +74,14 @@ "left": { "type": "PrivateName", "start":38,"end":40,"loc":{"start":{"line":4,"column":5},"end":{"line":4,"column":7}}, + "extra": { + "parenthesized": true, + "parenStart": 37 + }, "id": { "type": "Identifier", "start":39,"end":40,"loc":{"start":{"line":4,"column":6},"end":{"line":4,"column":7},"identifierName":"x"}, "name": "x" - }, - "extra": { - "parenthesized": true, - "parenStart": 37 } }, "operator": "in", diff --git a/packages/babel-parser/test/fixtures/experimental/private-in/private-in-without-field/output.json b/packages/babel-parser/test/fixtures/experimental/private-in/private-in-without-field/output.json index faefdfa540..43986a9187 100644 --- a/packages/babel-parser/test/fixtures/experimental/private-in/private-in-without-field/output.json +++ b/packages/babel-parser/test/fixtures/experimental/private-in/private-in-without-field/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Private name #x is not defined (3:4)" + "SyntaxError: Private name #x is not defined. (3:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-end-bar/options.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-end-bar/options.json index de1fad0a73..a9774f0d38 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-end-bar/options.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-end-bar/options.json @@ -1,4 +1,11 @@ { - "plugins": [["recordAndTuple", { "syntaxType": "hash" }]], - "throws": "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar' (1:0)" -} + "plugins": [ + [ + "recordAndTuple", + { + "syntaxType": "hash" + } + ] + ], + "throws": "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-bar/options.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-bar/options.json index ad916de061..48de601e90 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-bar/options.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-bar/options.json @@ -1,4 +1,11 @@ { - "plugins": [["recordAndTuple", { "syntaxType": "hash" }]], - "throws": "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar' (1:0)" -} + "plugins": [ + [ + "recordAndTuple", + { + "syntaxType": "hash" + } + ] + ], + "throws": "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-hash/options.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-hash/options.json index 9d23281e46..c93ec6c9c9 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-hash/options.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-record-start-hash/options.json @@ -1,4 +1,11 @@ { - "plugins": [["recordAndTuple", { "syntaxType": "bar" }]], - "throws": "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash' (1:0)" -} + "plugins": [ + [ + "recordAndTuple", + { + "syntaxType": "bar" + } + ] + ], + "throws": "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-end-bar/options.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-end-bar/options.json index cacf8c4cad..9d8814b7e8 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-end-bar/options.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-end-bar/options.json @@ -1,4 +1,11 @@ { - "plugins": [["recordAndTuple", { "syntaxType": "hash" }]], - "throws": "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar' (1:0)" -} + "plugins": [ + [ + "recordAndTuple", + { + "syntaxType": "hash" + } + ] + ], + "throws": "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-bar/options.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-bar/options.json index c7b3f7a090..d217cbfae4 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-bar/options.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-bar/options.json @@ -1,4 +1,11 @@ { - "plugins": [["recordAndTuple", { "syntaxType": "hash" }]], - "throws": "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar' (1:0)" -} + "plugins": [ + [ + "recordAndTuple", + { + "syntaxType": "hash" + } + ] + ], + "throws": "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-hash/options.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-hash/options.json index 4a28c83772..a6d1b353aa 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-hash/options.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/incorrect-type-tuple-start-hash/options.json @@ -1,4 +1,11 @@ { - "plugins": [["recordAndTuple", { "syntaxType": "bar" }]], - "throws": "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash' (1:0)" -} + "plugins": [ + [ + "recordAndTuple", + { + "syntaxType": "bar" + } + ] + ], + "throws": "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-method/output.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-method/output.json index b918fb65e4..002513eb8a 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-method/output.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-method/output.json @@ -2,11 +2,11 @@ "type": "File", "start":0,"end":69,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: Only properties and spread elements are allowed in record definitions (2:2)", - "SyntaxError: Only properties and spread elements are allowed in record definitions (3:2)", - "SyntaxError: Only properties and spread elements are allowed in record definitions (4:2)", - "SyntaxError: Only properties and spread elements are allowed in record definitions (5:2)", - "SyntaxError: Only properties and spread elements are allowed in record definitions (6:2)" + "SyntaxError: Only properties and spread elements are allowed in record definitions. (2:2)", + "SyntaxError: Only properties and spread elements are allowed in record definitions. (3:2)", + "SyntaxError: Only properties and spread elements are allowed in record definitions. (4:2)", + "SyntaxError: Only properties and spread elements are allowed in record definitions. (5:2)", + "SyntaxError: Only properties and spread elements are allowed in record definitions. (6:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-proto/output.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-proto/output.json index 4f409dffa2..f6258ed645 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-proto/output.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-record-proto/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: '__proto__' is not allowed in Record expressions (1:3)" + "SyntaxError: '__proto__' is not allowed in Record expressions. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-tuple-holes/output.json b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-tuple-holes/output.json index 40d2d81f68..f8797f3896 100644 --- a/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-tuple-holes/output.json +++ b/packages/babel-parser/test/fixtures/experimental/record-and-tuple/invalid-tuple-holes/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Unexpected token ',' (1:3)" + "SyntaxError: Unexpected token ','. (1:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/1/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/1/output.json index 609dda3bbf..69fddd506f 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/1/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/10/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/10/output.json index e3b8e5b001..0fc67ba124 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/10/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/10/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/11/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/11/output.json index 0179dbeaea..e59bbfe2ca 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/11/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/11/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/12/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/12/output.json index 3c29809b70..8b9d391fee 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/12/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/12/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/13/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/13/output.json index a1809a9c8d..e0d283b698 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/13/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/13/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/14/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/14/output.json index 8e236a6ead..d802658a97 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/14/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/14/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/15/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/15/output.json index e7b1472328..521ca332fc 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/15/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/15/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/16/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/16/output.json index 4a43408b0f..ff5cdbb036 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/16/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/16/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/17/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/17/output.json index 44c794754a..37db4ca5d3 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/17/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/17/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/18/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/18/output.json index 455448a59a..45fe8a611f 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/18/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/18/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/19/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/19/output.json index 8168708424..92696d6a2b 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/19/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/19/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/2/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/2/output.json index ce52b8a327..b12e604a22 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/2/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/20/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/20/output.json index 35f991fe7e..2191fe47e3 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/20/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/20/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/21/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/21/output.json index 7cb4030735..fd022b1874 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/21/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/21/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/22/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/22/output.json index eff90743fb..c8a8ace073 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/22/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/22/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/23/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/23/output.json index 1087c48d75..285ba8b261 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/23/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/23/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/24/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/24/output.json index c5667acab8..e0e25f0d9d 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/24/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/24/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/25/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/25/output.json index 79f7bd562e..1469759e01 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/25/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/25/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/26/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/26/output.json index 4f81da2ce9..b38cc4f6ec 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/26/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/26/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/27/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/27/output.json index 723655879b..2f2690a5c9 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/27/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/27/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/28/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/28/output.json index e4a9490764..29e0c9be40 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/28/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/28/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/29/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/29/output.json index da8fed17fc..0587eaa805 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/29/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/29/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/3/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/3/output.json index 7ae0eef006..9e5506d916 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/3/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/30/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/30/output.json index c24fdfc69c..8509c759ef 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/30/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/30/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/31/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/31/output.json index 82c45a0863..ad4e07051e 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/31/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/31/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/32/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/32/output.json index 653f4d1157..e7104ab464 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/32/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/32/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/33/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/33/output.json index 411c960f4b..fbccc2e520 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/33/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/33/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/34/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/34/output.json index 58f335c032..451cc64b4e 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/34/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/34/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/35/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/35/output.json index 1bb35ed64a..8442b1ae13 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/35/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/35/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/36/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/36/output.json index b713e29da1..d5eae3f831 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/36/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/36/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/37/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/37/output.json index f46c259f1f..fc0eb2ff79 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/37/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/37/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/38/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/38/output.json index 0bc304bb7f..105e849789 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/38/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/38/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":17,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":17}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/39/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/39/output.json index d49ff0ece2..5598ae1a64 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/39/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/39/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/4/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/4/output.json index e5802b2347..7454907ab0 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/4/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/40/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/40/output.json index fd45665f95..1006aef7e6 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/40/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/40/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/41/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/41/output.json index 5778cecc9d..46dc9e4f1c 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/41/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/41/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/42/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/42/output.json index fde0d72e80..afd42f7f2e 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/42/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/42/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/43/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/43/output.json index ed08a002f9..d523942ca2 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/43/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/43/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/44/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/44/output.json index 17bae3ae99..641d258d1f 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/44/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/44/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/45/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/45/output.json index 66c1f8c3f7..28eb806422 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/45/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/45/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/46/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/46/output.json index e0a9cd51c3..e4c24b2824 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/46/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/46/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/47/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/47/output.json index f6098844bb..f488d02eb2 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/47/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/47/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/48/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/48/output.json index 73f36b31b1..b5e6c1c2e5 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/48/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/48/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":22}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/49/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/49/output.json index c20647b9ca..92b6d035b9 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/49/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/49/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/5/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/5/output.json index 6d1d532d73..fa3c7c9528 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/5/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/50/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/50/output.json index 14f94a2dfd..c3a94a681d 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/50/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/50/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/51/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/51/output.json index 9dc1704ccb..532638d1aa 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/51/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/51/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/52/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/52/output.json index bf1a1f2cd6..cdb7e813f4 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/52/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/52/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/53/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/53/output.json index a091d166a9..f0f002f58f 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/53/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/53/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/54/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/54/output.json index 00c9046112..7d7cf71305 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/54/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/54/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/55/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/55/output.json index 1a31ef55aa..44fdb2c31d 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/55/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/55/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/56/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/56/output.json index 0743ba7823..06ecc3f9b9 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/56/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/56/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/57/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/57/output.json index 3ca7f733f3..7e17cc54d6 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/57/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/57/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/58/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/58/output.json index dd14b44892..464f64d570 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/58/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/58/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/59/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/59/output.json index 46e5846787..4a113e829c 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/59/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/59/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/6/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/6/output.json index d765a4698e..c20a14a385 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/6/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/6/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/60/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/60/output.json index 85fc081b8e..9e6f2f2fcf 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/60/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/60/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/61/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/61/output.json index 2b9b23d376..7dc2b8dd81 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/61/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/61/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/62/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/62/output.json index 05837f4a97..8ba27d9e22 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/62/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/62/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/63/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/63/output.json index aad86fddc4..315096395c 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/63/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/63/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/64/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/64/output.json index 1710ddd99d..966732da59 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/64/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/64/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/65/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/65/output.json index aee11de08c..97b660a328 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/65/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/65/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/66/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/66/output.json index 0e1c9101eb..58c471e5b0 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/66/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/66/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/67/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/67/output.json index c705268ab8..b655d26b30 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/67/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/67/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/68/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/68/output.json index e7434d46f7..3ab854d6dd 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/68/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/68/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/7/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/7/output.json index 5a00ed65e7..a823b83638 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/7/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/7/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/8/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/8/output.json index 4d6328f56d..9471146724 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/8/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/8/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:10)" + "SyntaxError: Invalid escape sequence in template. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/9/output.json b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/9/output.json index e2385a4024..67136a5529 100644 --- a/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/9/output.json +++ b/packages/babel-parser/test/fixtures/experimental/template-literal-invalid-escapes-untagged/9/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, "errors": [ - "SyntaxError: Invalid escape sequence in template (1:2)" + "SyntaxError: Invalid escape sequence in template. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-arrow/output.json b/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-arrow/output.json index 47dbaed608..095abcd5ba 100644 --- a/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-arrow/output.json +++ b/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-arrow/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules (1:6)" + "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-class-property/output.json b/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-class-property/output.json index 71e47b18fa..1a605c1193 100644 --- a/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-class-property/output.json +++ b/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-class-property/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions (2:6)" + "SyntaxError: 'await' is only allowed within async functions. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-function/output.json b/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-function/output.json index 27236952ad..7187b528a9 100644 --- a/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-function/output.json +++ b/packages/babel-parser/test/fixtures/experimental/top-level-await/inside-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules (2:2)" + "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/top-level-await/top-level-script/output.json b/packages/babel-parser/test/fixtures/experimental/top-level-await/top-level-script/output.json index 1b4283b271..bc5e8e2674 100644 --- a/packages/babel-parser/test/fixtures/experimental/top-level-await/top-level-script/output.json +++ b/packages/babel-parser/test/fixtures/experimental/top-level-await/top-level-script/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules (1:0)" + "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/experimental/uncategorised/41/options.json b/packages/babel-parser/test/fixtures/experimental/uncategorised/41/options.json index 04f4b2b1a5..a978659537 100644 --- a/packages/babel-parser/test/fixtures/experimental/uncategorised/41/options.json +++ b/packages/babel-parser/test/fixtures/experimental/uncategorised/41/options.json @@ -1,4 +1,6 @@ { - "plugins": ["decorators-legacy"], - "throws": "Leading decorators must be attached to a class declaration (1:5)" -} + "plugins": [ + "decorators-legacy" + ], + "throws": "Leading decorators must be attached to a class declaration. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/experimental/uncategorised/42/options.json b/packages/babel-parser/test/fixtures/experimental/uncategorised/42/options.json index 7f6646ea0d..f1feb7e203 100644 --- a/packages/babel-parser/test/fixtures/experimental/uncategorised/42/options.json +++ b/packages/babel-parser/test/fixtures/experimental/uncategorised/42/options.json @@ -2,5 +2,5 @@ "plugins": [ "decorators-legacy" ], - "throws": "Decorators must be attached to a class element (1:18)" + "throws": "Decorators must be attached to a class element. (1:18)" } \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/output.json b/packages/babel-parser/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/output.json index 078602d8ac..1e4afb6959 100644 --- a/packages/babel-parser/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/output.json +++ b/packages/babel-parser/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Classes may not have a field named 'constructor' (2:2)" + "SyntaxError: Classes may not have a field named 'constructor'. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/comment/06-type-include-error/options.json b/packages/babel-parser/test/fixtures/flow/comment/06-type-include-error/options.json index 88f910bceb..7a153491b5 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/06-type-include-error/options.json +++ b/packages/babel-parser/test/fixtures/flow/comment/06-type-include-error/options.json @@ -1,3 +1,15 @@ { - "throws": "Unterminated comment (2:2)" -} + "sourceType": "module", + "plugins": [ + [ + "jsx" + ], + [ + "flow" + ], + [ + "flowComments" + ] + ], + "throws": "Unterminated comment. (2:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/comment/07-type-include-error/options.json b/packages/babel-parser/test/fixtures/flow/comment/07-type-include-error/options.json index eb40f4f052..53b11019fa 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/07-type-include-error/options.json +++ b/packages/babel-parser/test/fixtures/flow/comment/07-type-include-error/options.json @@ -1,3 +1,15 @@ { - "throws": "Unterminated comment (1:0)" -} + "sourceType": "module", + "plugins": [ + [ + "jsx" + ], + [ + "flow" + ], + [ + "flowComments" + ] + ], + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/comment/08-type-flow-include-error/options.json b/packages/babel-parser/test/fixtures/flow/comment/08-type-flow-include-error/options.json index eb40f4f052..53b11019fa 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/08-type-flow-include-error/options.json +++ b/packages/babel-parser/test/fixtures/flow/comment/08-type-flow-include-error/options.json @@ -1,3 +1,15 @@ { - "throws": "Unterminated comment (1:0)" -} + "sourceType": "module", + "plugins": [ + [ + "jsx" + ], + [ + "flow" + ], + [ + "flowComments" + ] + ], + "throws": "Unterminated comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/comment/09-type-flow-include-error/options.json b/packages/babel-parser/test/fixtures/flow/comment/09-type-flow-include-error/options.json index 88f910bceb..7a153491b5 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/09-type-flow-include-error/options.json +++ b/packages/babel-parser/test/fixtures/flow/comment/09-type-flow-include-error/options.json @@ -1,3 +1,15 @@ { - "throws": "Unterminated comment (2:2)" -} + "sourceType": "module", + "plugins": [ + [ + "jsx" + ], + [ + "flow" + ], + [ + "flowComments" + ] + ], + "throws": "Unterminated comment. (2:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/comment/10-type-annotation-error/options.json b/packages/babel-parser/test/fixtures/flow/comment/10-type-annotation-error/options.json index 4e97b8b844..6c58eeaa58 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/10-type-annotation-error/options.json +++ b/packages/babel-parser/test/fixtures/flow/comment/10-type-annotation-error/options.json @@ -1,3 +1,15 @@ { - "throws": "Unterminated comment (1:22)" -} + "sourceType": "module", + "plugins": [ + [ + "jsx" + ], + [ + "flow" + ], + [ + "flowComments" + ] + ], + "throws": "Unterminated comment. (1:22)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/comment/11-nested-comments-invalid/options.json b/packages/babel-parser/test/fixtures/flow/comment/11-nested-comments-invalid/options.json index 8b8fde9283..fa8393d46a 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/11-nested-comments-invalid/options.json +++ b/packages/babel-parser/test/fixtures/flow/comment/11-nested-comments-invalid/options.json @@ -1,3 +1,15 @@ { - "throws": "Unterminated comment (1:5)" -} + "sourceType": "module", + "plugins": [ + [ + "jsx" + ], + [ + "flow" + ], + [ + "flowComments" + ] + ], + "throws": "Unterminated comment. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/comment/12-line-comment-nested-invalid/output.json b/packages/babel-parser/test/fixtures/flow/comment/12-line-comment-nested-invalid/output.json index 6f4643e82a..bfcedf2ad9 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/12-line-comment-nested-invalid/output.json +++ b/packages/babel-parser/test/fixtures/flow/comment/12-line-comment-nested-invalid/output.json @@ -2,22 +2,22 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, "errors": [ - "SyntaxError: Unterminated flow-comment (1:13)" + "SyntaxError: Unterminated flow-comment. (1:13)" ], "program": { "type": "Program", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}, - "sourceType": "module", - "interpreter": null, - "body": [], - "directives": [], "innerComments": [ { "type": "CommentLine", "value": "asd */", "start":5,"end":13,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":13}} } - ] + ], + "sourceType": "module", + "interpreter": null, + "body": [], + "directives": [] }, "comments": [ { diff --git a/packages/babel-parser/test/fixtures/flow/comment/13-nested-flow-comments-invalid/options.json b/packages/babel-parser/test/fixtures/flow/comment/13-nested-flow-comments-invalid/options.json index fb8fdf85ee..d06b54b623 100644 --- a/packages/babel-parser/test/fixtures/flow/comment/13-nested-flow-comments-invalid/options.json +++ b/packages/babel-parser/test/fixtures/flow/comment/13-nested-flow-comments-invalid/options.json @@ -1,3 +1,15 @@ { - "throws": "Cannot have a flow comment inside another flow comment (1:0)" -} + "sourceType": "module", + "plugins": [ + [ + "jsx" + ], + [ + "flow" + ], + [ + "flowComments" + ] + ], + "throws": "Cannot have a flow comment inside another flow comment. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-declare-export-type/options.json b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-declare-export-type/options.json index 2f2a34e735..52dfd40dfe 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-declare-export-type/options.json +++ b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-declare-export-type/options.json @@ -1,3 +1,8 @@ { - "throws": "`declare export type` is not supported. Use `export type` instead (1:15)" -} + "sourceType": "module", + "plugins": [ + "jsx", + "flow" + ], + "throws": "`declare export type` is not supported. Use `export type` instead. (1:15)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-const/options.json b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-const/options.json index 8466e2ca85..0e5a231462 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-const/options.json +++ b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-const/options.json @@ -1,3 +1,8 @@ { - "throws": "`declare export const` is not supported. Use `declare export var` instead (1:15)" -} + "sourceType": "module", + "plugins": [ + "jsx", + "flow" + ], + "throws": "`declare export const` is not supported. Use `declare export var` instead. (1:15)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-default-var/output.json b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-default-var/output.json index 79403b71b3..d967e14c39 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-default-var/output.json +++ b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-default-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Missing semicolon (1:26)" + "SyntaxError: Missing semicolon. (1:26)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-interface/options.json b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-interface/options.json index 3977f3c480..a4f4398504 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-interface/options.json +++ b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-interface/options.json @@ -1,3 +1,8 @@ { - "throws": "`declare export interface` is not supported. Use `export interface` instead (1:15)" -} + "sourceType": "module", + "plugins": [ + "jsx", + "flow" + ], + "throws": "`declare export interface` is not supported. Use `export interface` instead. (1:15)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-let/options.json b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-let/options.json index 745a711f11..fc259b7d22 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-let/options.json +++ b/packages/babel-parser/test/fixtures/flow/declare-export/invalid-export-let/options.json @@ -1,3 +1,8 @@ { - "throws": "`declare export let` is not supported. Use `declare export var` instead (1:15)" -} + "sourceType": "module", + "plugins": [ + "jsx", + "flow" + ], + "throws": "`declare export let` is not supported. Use `declare export var` instead. (1:15)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/declare-module/8/options.json b/packages/babel-parser/test/fixtures/flow/declare-module/8/options.json index 32826163f1..07c925b391 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-module/8/options.json +++ b/packages/babel-parser/test/fixtures/flow/declare-module/8/options.json @@ -1,3 +1,8 @@ { - "throws": "Only declares and type imports are allowed inside declare module (2:2)" -} + "sourceType": "module", + "plugins": [ + "jsx", + "flow" + ], + "throws": "Only declares and type imports are allowed inside declare module. (2:2)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-commonjs-module/output.json b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-commonjs-module/output.json index 6b671f1ed6..1411eb1744 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-commonjs-module/output.json +++ b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-commonjs-module/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":87,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":87}}, "errors": [ - "SyntaxError: Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module (1:55)" + "SyntaxError: Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module. (1:55)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-es-module/output.json b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-es-module/output.json index a1bf5fae4b..456dfcbf14 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-es-module/output.json +++ b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-es-module/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":86,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":86}}, "errors": [ - "SyntaxError: Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module (1:53)" + "SyntaxError: Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module. (1:53)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-import/output.json b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-import/output.json index 6155f8eda4..c6c5d3a2c3 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-import/output.json +++ b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-import/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}}, "errors": [ - "SyntaxError: Imports within a `declare module` body must always be `import type` or `import typeof` (1:21)" + "SyntaxError: Imports within a `declare module` body must always be `import type` or `import typeof`. (1:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-module-in-module/output.json b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-module-in-module/output.json index bd3851fd4f..477e9cb675 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-module-in-module/output.json +++ b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-module-in-module/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}}, "errors": [ - "SyntaxError: `declare module` cannot be used inside another `declare module` (1:27)" + "SyntaxError: `declare module` cannot be used inside another `declare module`. (1:27)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-multiple-commonjs/output.json b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-multiple-commonjs/output.json index b16aeb7c7e..137e8fd603 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-module/invalid-multiple-commonjs/output.json +++ b/packages/babel-parser/test/fixtures/flow/declare-module/invalid-multiple-commonjs/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":88,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":88}}, "errors": [ - "SyntaxError: Duplicate `declare module.exports` statement (1:55)" + "SyntaxError: Duplicate `declare module.exports` statement. (1:55)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/declare-statements/invalid-literal/output.json b/packages/babel-parser/test/fixtures/flow/declare-statements/invalid-literal/output.json index 6418fa0d75..e6a5a81179 100644 --- a/packages/babel-parser/test/fixtures/flow/declare-statements/invalid-literal/output.json +++ b/packages/babel-parser/test/fixtures/flow/declare-statements/invalid-literal/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}}, "errors": [ - "SyntaxError: Missing semicolon (1:7)" + "SyntaxError: Missing semicolon. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/enum-declaration/reserved-word-enum-name/output.json b/packages/babel-parser/test/fixtures/flow/enum-declaration/reserved-word-enum-name/output.json index a48c8cad04..2a5e58c6be 100644 --- a/packages/babel-parser/test/fixtures/flow/enum-declaration/reserved-word-enum-name/output.json +++ b/packages/babel-parser/test/fixtures/flow/enum-declaration/reserved-word-enum-name/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":1}}, "errors": [ - "SyntaxError: Unexpected keyword 'class' (1:5)" + "SyntaxError: Unexpected keyword 'class'. (1:5)" ], "program": { "type": "Program", @@ -21,9 +21,9 @@ "body": { "type": "EnumStringBody", "start":11,"end":14,"loc":{"start":{"line":1,"column":11},"end":{"line":2,"column":1}}, + "hasUnknownMembers": false, "explicitType": false, - "members": [], - "hasUnknownMembers": false + "members": [] } } ], diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects1/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects1/output.json index 79791869df..35964d8e51 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects1/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (3:2)" + "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (3:2)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "DeclareClass", "start":8,"end":34,"loc":{"start":{"line":2,"column":0},"end":{"line":4,"column":1}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":22,"end":23,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":15},"identifierName":"A"}, @@ -30,14 +37,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects2/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects2/output.json index 5f245815fb..1d1b441e43 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects2/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (4:2)" + "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (4:2)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "DeclareClass", "start":8,"end":49,"loc":{"start":{"line":2,"column":0},"end":{"line":5,"column":1}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":22,"end":23,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":15},"identifierName":"B"}, @@ -50,14 +57,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects3/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects3/output.json index 6933be9552..def4a6ab48 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects3/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects3/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (3:2)", - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (3:2)" + "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (3:2)", + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (3:2)" ], "program": { "type": "Program", @@ -14,6 +14,13 @@ { "type": "DeclareClass", "start":8,"end":49,"loc":{"start":{"line":2,"column":0},"end":{"line":5,"column":1}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":22,"end":23,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":15},"identifierName":"C"}, @@ -51,14 +58,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects4/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects4/output.json index 6c4b0246e4..baf91fda2f 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects4/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects4/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":64,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (4:2)", - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (4:2)" + "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (4:2)", + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (4:2)" ], "program": { "type": "Program", @@ -14,6 +14,13 @@ { "type": "DeclareClass", "start":8,"end":64,"loc":{"start":{"line":2,"column":0},"end":{"line":6,"column":1}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":22,"end":23,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":15},"identifierName":"D"}, @@ -70,14 +77,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects5/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects5/output.json index 6cbdf063a8..52ca6a7b16 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects5/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (4:2)" + "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (4:2)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "InterfaceDeclaration", "start":8,"end":45,"loc":{"start":{"line":2,"column":0},"end":{"line":5,"column":1}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":18,"end":19,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"F"}, @@ -50,14 +57,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects6/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects6/output.json index ef17a8522e..c05fb49b07 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects6/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects6/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (3:2)", - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (3:2)" + "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (3:2)", + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (3:2)" ], "program": { "type": "Program", @@ -14,6 +14,13 @@ { "type": "InterfaceDeclaration", "start":8,"end":45,"loc":{"start":{"line":2,"column":0},"end":{"line":5,"column":1}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":18,"end":19,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"G"}, @@ -51,14 +58,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects7/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects7/output.json index c8b0234032..e387f51c3e 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects7/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_disallowed_in_non_objects7/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":60,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions (4:2)", - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (4:2)" + "SyntaxError: Explicit inexact syntax cannot appear in class or interface definitions. (4:2)", + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (4:2)" ], "program": { "type": "Program", @@ -14,6 +14,13 @@ { "type": "InterfaceDeclaration", "start":8,"end":60,"loc":{"start":{"line":2,"column":0},"end":{"line":6,"column":1}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":18,"end":19,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"H"}, @@ -70,14 +77,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_forbidden_in_exact/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_forbidden_in_exact/output.json index 94a0689470..78a7c5b512 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_forbidden_in_exact/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_forbidden_in_exact/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":31}}, "errors": [ - "SyntaxError: Explicit inexact syntax cannot appear inside an explicit exact object type (2:25)" + "SyntaxError: Explicit inexact syntax cannot appear inside an explicit exact object type. (2:25)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "TypeAlias", "start":8,"end":39,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":31}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":13,"end":14,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"T"}, @@ -48,14 +55,7 @@ "internalSlots": [], "exact": true, "inexact": true - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_must_appear_last/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_must_appear_last/output.json index 36abf35d45..0d9f4b00f0 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_must_appear_last/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_must_appear_last/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":28}}, "errors": [ - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (2:10)" + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (2:10)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "TypeAlias", "start":8,"end":36,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":28}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":13,"end":14,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"T"}, @@ -48,14 +55,7 @@ "internalSlots": [], "exact": false, "inexact": true - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid1/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid1/output.json index 16a8edbd4b..2bf826537e 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid1/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":37}}, "errors": [ - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (2:21)" + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (2:21)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "TypeAlias", "start":8,"end":45,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":37}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":13,"end":14,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"T"}, @@ -67,14 +74,7 @@ "internalSlots": [], "exact": false, "inexact": true - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid2/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid2/output.json index ff2e24bc5d..15cdfdd179 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid2/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":31}}, "errors": [ - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (2:21)" + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (2:21)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "TypeAlias", "start":8,"end":39,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":31}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":13,"end":14,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"U"}, @@ -48,14 +55,7 @@ "internalSlots": [], "exact": false, "inexact": true - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid3/output.json b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid3/output.json index 40f82000ed..f72a571b86 100644 --- a/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid3/output.json +++ b/packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":32}}, "errors": [ - "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object (2:21)" + "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (2:21)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "TypeAlias", "start":8,"end":40,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":32}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":13,"end":14,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"V"}, @@ -62,14 +69,7 @@ "internalSlots": [], "exact": false, "inexact": true - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-1/output.json b/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-1/output.json index ab97f0f061..870295c807 100644 --- a/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-1/output.json +++ b/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":30}}, "errors": [ - "SyntaxError: Unexpected reserved type bool (2:23)" + "SyntaxError: Unexpected reserved type bool. (2:23)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "InterfaceDeclaration", "start":9,"end":39,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":30}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "id": { "type": "Identifier", "start":19,"end":20,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"I"}, @@ -51,14 +58,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-2/output.json b/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-2/output.json index 53fdc1eadb..5ae6cee7b6 100644 --- a/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/interface-types/extends-multiple-reserved-invalid-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":32}}, "errors": [ - "SyntaxError: Unexpected reserved type bool (2:23)" + "SyntaxError: Unexpected reserved type bool. (2:23)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "InterfaceDeclaration", "start":9,"end":41,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":32}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "id": { "type": "Identifier", "start":19,"end":20,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"I"}, @@ -60,14 +67,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-1/output.json b/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-1/output.json index a9b966d7db..e7845d7709 100644 --- a/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-1/output.json +++ b/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":27}}, "errors": [ - "SyntaxError: Unexpected reserved type bool (2:20)" + "SyntaxError: Unexpected reserved type bool. (2:20)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "InterfaceDeclaration", "start":9,"end":36,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":27}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "id": { "type": "Identifier", "start":19,"end":20,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"I"}, @@ -41,14 +48,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-2/output.json b/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-2/output.json index 9c8eea94c7..3db5700fa5 100644 --- a/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/interface-types/extends-reserved-invalid-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":29}}, "errors": [ - "SyntaxError: Unexpected reserved type bool (2:20)" + "SyntaxError: Unexpected reserved type bool. (2:20)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "InterfaceDeclaration", "start":9,"end":38,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":29}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "id": { "type": "Identifier", "start":19,"end":20,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11},"identifierName":"I"}, @@ -50,14 +57,7 @@ "indexers": [], "internalSlots": [], "exact": false - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/assignment-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/assignment-expression/output.json index e0bd14b6ea..87987732d0 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/assignment-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/assignment-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:0)" + "SyntaxError: Unexpected reserved word 'interface'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/binary-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/binary-expression/output.json index d4a672ad70..6fab807b4f 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/binary-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/binary-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:0)" + "SyntaxError: Unexpected reserved word 'interface'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/call-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/call-expression/output.json index aa6500d58b..09abd7b564 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/call-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/call-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:0)" + "SyntaxError: Unexpected reserved word 'interface'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/class-declaration/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/class-declaration/output.json index 1193e8005e..eb39635cad 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/class-declaration/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/class-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:6)" + "SyntaxError: Unexpected reserved word 'interface'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/conditional-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/conditional-expression/output.json index f262c43662..bf92baddfd 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/conditional-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/conditional-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:0)" + "SyntaxError: Unexpected reserved word 'interface'. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/function-declaration/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/function-declaration/output.json index 47fedb9e18..a60dbbf13b 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/function-declaration/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/function-declaration/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:9)" + "SyntaxError: Unexpected reserved word 'interface'. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/import-statement/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/import-statement/output.json index d994e24f05..b8e8d00600 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/import-statement/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/import-statement/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:7)" + "SyntaxError: Unexpected reserved word 'interface'. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/member-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/member-expression/output.json index 6a8a618b8f..ae5cd2eba4 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/member-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/member-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (2:0)" + "SyntaxError: Unexpected reserved word 'interface'. (2:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/new-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/new-expression/output.json index 394218d162..969cf3726c 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/new-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/new-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:4)" + "SyntaxError: Unexpected reserved word 'interface'. (1:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/sequence-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/sequence-expression/output.json index 638420bfde..42005e7bcc 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/sequence-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/sequence-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:1)" + "SyntaxError: Unexpected reserved word 'interface'. (1:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/unary-expression/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/unary-expression/output.json index 47bfc9d516..129b76cbbf 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/unary-expression/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/unary-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:5)" + "SyntaxError: Unexpected reserved word 'interface'. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/variable/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/variable/output.json index e040c227cc..f5873f3aa0 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/variable/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/variable/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Unexpected reserved word 'interface' (1:6)" + "SyntaxError: Unexpected reserved word 'interface'. (1:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/id-reserved-type-invalid/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/id-reserved-type-invalid/output.json index 0cb78e7903..beb134cf75 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/id-reserved-type-invalid/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/id-reserved-type-invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:10)" + "SyntaxError: Cannot overwrite reserved type string. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid-2/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid-2/output.json index ae3f5125cf..7acd264907 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}, "errors": [ - "SyntaxError: Unexpected reserved type string (1:26)" + "SyntaxError: Unexpected reserved type string. (1:26)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid/output.json b/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid/output.json index 663e4c8f9d..8113695e2a 100644 --- a/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid/output.json +++ b/packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/implements-reserved-type-invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Unexpected reserved type string (1:21)" + "SyntaxError: Unexpected reserved type string. (1:21)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/03/output.json b/packages/babel-parser/test/fixtures/flow/iterator/03/output.json index e056c32eb0..b60d7bb89e 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/03/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/03/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Invalid identifier @@asyncIterator (1:19)" + "SyntaxError: Invalid identifier @@asyncIterator. (1:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/04/output.json b/packages/babel-parser/test/fixtures/flow/iterator/04/output.json index 106b8002e3..af13628daf 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/04/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/04/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}}, "errors": [ - "SyntaxError: Invalid identifier @@iterator (1:14)" + "SyntaxError: Invalid identifier @@iterator. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/05/output.json b/packages/babel-parser/test/fixtures/flow/iterator/05/output.json index ca6b8b096c..62da6b46de 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/05/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/05/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Invalid identifier @@asyncIterator (2:17)" + "SyntaxError: Invalid identifier @@asyncIterator. (2:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/06/output.json b/packages/babel-parser/test/fixtures/flow/iterator/06/output.json index fad3d45978..ab1dcead69 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/06/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/06/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Invalid identifier @@iterator (2:12)" + "SyntaxError: Invalid identifier @@iterator. (2:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/07/output.json b/packages/babel-parser/test/fixtures/flow/iterator/07/output.json index 265adf68c1..b9ecdcf070 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/07/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/07/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Invalid identifier @@iterator (1:15)" + "SyntaxError: Invalid identifier @@iterator. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/08/output.json b/packages/babel-parser/test/fixtures/flow/iterator/08/output.json index 278c95feaf..b37c770ce7 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/08/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/08/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}}, "errors": [ - "SyntaxError: Invalid identifier @@asyncIterator (1:20)" + "SyntaxError: Invalid identifier @@asyncIterator. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/09/output.json b/packages/babel-parser/test/fixtures/flow/iterator/09/output.json index 0717722547..a227d4ac76 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/09/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/09/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Invalid identifier @@iterator (2:12)" + "SyntaxError: Invalid identifier @@iterator. (2:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/10/output.json b/packages/babel-parser/test/fixtures/flow/iterator/10/output.json index 836c3af1af..b50a5abc60 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/10/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/10/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Invalid identifier @@asyncIterator (2:17)" + "SyntaxError: Invalid identifier @@asyncIterator. (2:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/iterator/11/output.json b/packages/babel-parser/test/fixtures/flow/iterator/11/output.json index a97fb3437b..16cad20388 100644 --- a/packages/babel-parser/test/fixtures/flow/iterator/11/output.json +++ b/packages/babel-parser/test/fixtures/flow/iterator/11/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Invalid identifier @@random (2:10)" + "SyntaxError: Invalid identifier @@random. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/literal-types/invalid-number-negative/options.json b/packages/babel-parser/test/fixtures/flow/literal-types/invalid-number-negative/options.json index d4fadede72..7e3708dd05 100644 --- a/packages/babel-parser/test/fixtures/flow/literal-types/invalid-number-negative/options.json +++ b/packages/babel-parser/test/fixtures/flow/literal-types/invalid-number-negative/options.json @@ -1,3 +1,8 @@ { - "throws": "Unexpected token, expected \"number\" or \"bigint\" (1:8)" -} + "sourceType": "module", + "plugins": [ + "jsx", + "flow" + ], + "throws": "Unexpected token, expected \"number\" or \"bigint\". (1:8)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/multiple-declarations/class/output.json b/packages/babel-parser/test/fixtures/flow/multiple-declarations/class/output.json index 246523ff73..72eeed7be3 100644 --- a/packages/babel-parser/test/fixtures/flow/multiple-declarations/class/output.json +++ b/packages/babel-parser/test/fixtures/flow/multiple-declarations/class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":11}}, "errors": [ - "SyntaxError: Identifier 'C1' has already been declared (2:6)" + "SyntaxError: Identifier 'C1' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/multiple-declarations/interface/output.json b/packages/babel-parser/test/fixtures/flow/multiple-declarations/interface/output.json index edb012f084..ed99a0a53c 100644 --- a/packages/babel-parser/test/fixtures/flow/multiple-declarations/interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/multiple-declarations/interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":15}}, "errors": [ - "SyntaxError: Identifier 'I' has already been declared (2:10)" + "SyntaxError: Identifier 'I' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/multiple-declarations/type/output.json b/packages/babel-parser/test/fixtures/flow/multiple-declarations/type/output.json index a17be34d17..2604e8f329 100644 --- a/packages/babel-parser/test/fixtures/flow/multiple-declarations/type/output.json +++ b/packages/babel-parser/test/fixtures/flow/multiple-declarations/type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":17}}, "errors": [ - "SyntaxError: Identifier 'T1' has already been declared (2:5)" + "SyntaxError: Identifier 'T1' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count-rest/output.json b/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count-rest/output.json index 200019bb51..60511cf373 100644 --- a/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count-rest/output.json +++ b/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count-rest/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: getter must not have any formal parameters (2:2)" + "SyntaxError: A 'get' accesor must not have any formal parameters. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count/output.json b/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count/output.json index d98c7d2c41..2b8b981277 100644 --- a/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count/output.json +++ b/packages/babel-parser/test/fixtures/flow/object-types/invalid-getter-param-count/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: getter must not have any formal parameters (2:2)" + "SyntaxError: A 'get' accesor must not have any formal parameters. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-count/output.json b/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-count/output.json index fa18c3c235..e2425bb764 100644 --- a/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-count/output.json +++ b/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-count/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: setter must have exactly one formal parameter (2:2)" + "SyntaxError: A 'set' accesor must have exactly one formal parameter. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-type/output.json b/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-type/output.json index b2207b3a6f..f4a757bc13 100644 --- a/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/object-types/invalid-setter-param-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: setter function argument must not be a rest parameter (2:2)" + "SyntaxError: A 'set' accesor function argument must not be a rest parameter. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/opaque-type-alias/reserved-type-invalid/output.json b/packages/babel-parser/test/fixtures/flow/opaque-type-alias/reserved-type-invalid/output.json index 200ac258b0..330bce7980 100644 --- a/packages/babel-parser/test/fixtures/flow/opaque-type-alias/reserved-type-invalid/output.json +++ b/packages/babel-parser/test/fixtures/flow/opaque-type-alias/reserved-type-invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:12)" + "SyntaxError: Cannot overwrite reserved type string. (1:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-1/output.json b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-1/output.json index 92d6267292..99b5c40cf3 100644 --- a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-1/output.json +++ b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":67,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":24}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (2:11)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:11)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "ExpressionStatement", "start":43,"end":67,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":24}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Function which looks like a return type", + "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}} + } + ], "expression": { "type": "ConditionalExpression", "start":43,"end":66,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":23}}, @@ -24,11 +31,11 @@ "consequent": { "type": "Identifier", "start":48,"end":49,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"b"}, - "name": "b", "extra": { "parenthesized": true, "parenStart": 47 - } + }, + "name": "b" }, "alternate": { "type": "ArrowFunctionExpression", @@ -63,14 +70,7 @@ "name": "e" } } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Function which looks like a return type", - "start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-2/output.json b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-2/output.json index f6bdf3a0ad..89889f8f6f 100644 --- a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":83,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":36}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (2:8)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:8)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "ExpressionStatement", "start":47,"end":83,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":36}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Invalid LHS parameter after type parameters", + "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}} + } + ], "expression": { "type": "ConditionalExpression", "start":47,"end":82,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":35}}, @@ -66,11 +73,11 @@ "body": { "type": "Identifier", "start":71,"end":72,"loc":{"start":{"line":2,"column":24},"end":{"line":2,"column":25},"identifierName":"e"}, - "name": "e", "extra": { "parenthesized": true, "parenStart": 70 - } + }, + "name": "e" }, "typeParameters": { "type": "TypeParameterDeclaration", @@ -104,14 +111,7 @@ "name": "g" } } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Invalid LHS parameter after type parameters", - "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-3/output.json b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-3/output.json index d527059cda..8674cdbad9 100644 --- a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-3/output.json +++ b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":76,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":29}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (2:5)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:5)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "ExpressionStatement", "start":47,"end":76,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":29}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Invalid LHS parameter after type parameters", + "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}} + } + ], "expression": { "type": "ConditionalExpression", "start":47,"end":75,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":28}}, @@ -51,11 +58,11 @@ "body": { "type": "Identifier", "start":64,"end":65,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":18},"identifierName":"e"}, - "name": "e", "extra": { "parenthesized": true, "parenStart": 63 - } + }, + "name": "e" } }, "alternate": { @@ -77,14 +84,7 @@ "name": "g" } } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Invalid LHS parameter after type parameters", - "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":46}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-4/output.json b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-4/output.json index 72ec0ee872..dba5be30eb 100644 --- a/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-4/output.json +++ b/packages/babel-parser/test/fixtures/flow/regression/issue-58-failing-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":60,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":35}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (2:11)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (2:11)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "ExpressionStatement", "start":25,"end":60,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":35}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Invalid LHS parameter", + "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}} + } + ], "expression": { "type": "ConditionalExpression", "start":25,"end":59,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":34}}, @@ -51,11 +58,11 @@ "body": { "type": "Identifier", "start":48,"end":49,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":24},"identifierName":"d"}, - "name": "d", "extra": { "parenthesized": true, "parenStart": 47 - } + }, + "name": "d" } }, "alternate": { @@ -77,14 +84,7 @@ "name": "g" } } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Invalid LHS parameter", - "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-class/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-class/output.json index c3c7f880bf..11aaddc9f8 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-class/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":18}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:14)" + "SyntaxError: Identifier 'A' has already been declared. (2:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-interface/output.json index 24563be730..1cf712d55e 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:18)" + "SyntaxError: Identifier 'A' has already been declared. (2:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-interface/output.json index b687d17111..bb4e78a5cf 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:10)" + "SyntaxError: Identifier 'A' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-opaque-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-opaque-type/output.json index baeda3cb81..e772e9aae3 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-opaque-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-opaque-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":19}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:12)" + "SyntaxError: Identifier 'A' has already been declared. (2:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-type/output.json index efef580046..66f2dfa70e 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-class-declare-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-class-declare-interface/output.json index 33e3c98521..122721c64f 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-class-declare-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-class-declare-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:18)" + "SyntaxError: Identifier 'A' has already been declared. (2:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-interface-declare-class/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-interface-declare-class/output.json index 555f58649c..dda2cb323b 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-interface-declare-class/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-interface-declare-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":18}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:14)" + "SyntaxError: Identifier 'A' has already been declared. (2:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-var-let/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-var-let/output.json index dd8f7d4acb..735a7e7d38 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-var-let/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-declare-var-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":6}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:4)" + "SyntaxError: Identifier 'A' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-func-declare-func/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-func-declare-func/output.json index ac0fe1790e..51d503239e 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-func-declare-func/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-func-declare-func/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":27}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:17)" + "SyntaxError: Identifier 'A' has already been declared. (2:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-interface-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-interface-interface/output.json index 4f2b265c88..3f7ca64764 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-interface-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-interface-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:10)" + "SyntaxError: Identifier 'A' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-class/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-class/output.json index d1e848e459..3b3315551b 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-class/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":18}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:14)" + "SyntaxError: Identifier 'A' has already been declared. (2:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-interface/output.json index 6a4433ea75..37ee03cd1c 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:18)" + "SyntaxError: Identifier 'A' has already been declared. (2:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-interface/output.json index d102313ba8..0541efe509 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:10)" + "SyntaxError: Identifier 'A' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-opaque-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-opaque-type/output.json index 085f418b8d..dabb9e6868 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-opaque-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-opaque-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":19}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:12)" + "SyntaxError: Identifier 'A' has already been declared. (2:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-type/output.json index 4f7bdf0cd2..ea9fe3a23d 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-const/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-const/output.json index b68fa59284..e3f8674783 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-const/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-const/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:6)" + "SyntaxError: Identifier 'A' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-let/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-let/output.json index 00382a7d0f..e2d56fdd99 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-let/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:4)" + "SyntaxError: Identifier 'A' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-opaque-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-opaque-type/output.json index bbcc52e79f..9f336b096a 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-opaque-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-opaque-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":19}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:12)" + "SyntaxError: Identifier 'A' has already been declared. (2:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-type/output.json index ae77d22a53..4c1e309bb8 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-var/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-var/output.json index fcfa4d8505..5399995534 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-var/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-opaque-type-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:4)" + "SyntaxError: Identifier 'A' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-const/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-const/output.json index 6170eb332b..3cbdce95a1 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-const/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-const/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:6)" + "SyntaxError: Identifier 'A' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-interface/output.json index 017c30dec6..f5913e48b7 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:10)" + "SyntaxError: Identifier 'A' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-let/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-let/output.json index 33397a54dd..bf2d2deacf 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-let/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:4)" + "SyntaxError: Identifier 'A' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-opaque-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-opaque-type/output.json index 13e009e688..9127083ccf 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-opaque-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-opaque-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":19}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:12)" + "SyntaxError: Identifier 'A' has already been declared. (2:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-type/output.json index b6c3a2ed34..99fb97a5bf 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-var/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-var/output.json index 31719046a5..6d71a6844f 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-var/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-type-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:4)" + "SyntaxError: Identifier 'A' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-declare-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-declare-interface/output.json index 0dbab3e68b..613c621737 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-declare-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-declare-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:18)" + "SyntaxError: Identifier 'A' has already been declared. (2:18)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-interface/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-interface/output.json index 80e7ca6b69..2723f74b4c 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-interface/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:10)" + "SyntaxError: Identifier 'A' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-opaque-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-opaque-type/output.json index 22d33f3427..fb5ddd4709 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-opaque-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-opaque-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":19}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:12)" + "SyntaxError: Identifier 'A' has already been declared. (2:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-type/output.json b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-type/output.json index 749d355f7d..c7ce24f1ec 100644 --- a/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/scope/dupl-decl-var-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":12}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/this-annotation/this-arrow-function/output.json b/packages/babel-parser/test/fixtures/flow/this-annotation/this-arrow-function/output.json index 954fd71984..c590ae09e7 100644 --- a/packages/babel-parser/test/fixtures/flow/this-annotation/this-arrow-function/output.json +++ b/packages/babel-parser/test/fixtures/flow/this-annotation/this-arrow-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Binding invalid left-hand side in function parameter list (1:9)" + "SyntaxError: Binding invalid left-hand side in function parameter list. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/this-annotation/this-getter/output.json b/packages/babel-parser/test/fixtures/flow/this-annotation/this-getter/output.json index 320f898c90..9656625921 100644 --- a/packages/babel-parser/test/fixtures/flow/this-annotation/this-getter/output.json +++ b/packages/babel-parser/test/fixtures/flow/this-annotation/this-getter/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: getter must not have any formal parameters (2:2)", + "SyntaxError: A 'get' accesor must not have any formal parameters. (2:2)", "SyntaxError: A getter cannot have a `this` parameter. (2:10)" ], "program": { diff --git a/packages/babel-parser/test/fixtures/flow/this-annotation/this-setter-type/output.json b/packages/babel-parser/test/fixtures/flow/this-annotation/this-setter-type/output.json index 06408c4054..b7097b3ee3 100644 --- a/packages/babel-parser/test/fixtures/flow/this-annotation/this-setter-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/this-annotation/this-setter-type/output.json @@ -3,7 +3,7 @@ "start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ "SyntaxError: A setter cannot have a `this` parameter. (2:10)", - "SyntaxError: setter must have exactly one formal parameter (2:2)" + "SyntaxError: A 'set' accesor must have exactly one formal parameter. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/131/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/131/output.json index bd280f5d14..ce2d751eec 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/131/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/131/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type number (1:5)" + "SyntaxError: Cannot overwrite reserved type number. (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/132/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/132/output.json index a9ad9925ad..7e4ba7374c 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/132/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/132/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}}, "errors": [ - "SyntaxError: Unexpected reserved type number (1:9)" + "SyntaxError: Unexpected reserved type number. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/133/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/133/output.json index 4ffc897161..61457b4164 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/133/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/133/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Unexpected reserved type string (1:11)" + "SyntaxError: Unexpected reserved type string. (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/134/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/134/output.json index 6f5bb81982..9a9f84123d 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/134/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/134/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type bool (1:13)" + "SyntaxError: Cannot overwrite reserved type bool. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/137/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/137/output.json index 1c70bbf4c4..ca1acaeb91 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/137/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/137/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}}, "errors": [ - "SyntaxError: Spread operator cannot appear in class or interface definitions (2:1)" + "SyntaxError: Spread operator cannot appear in class or interface definitions. (2:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/139/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/139/output.json index f3000dfc44..78f7f45078 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/139/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/139/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":2}}, "errors": [ - "SyntaxError: Spread properties cannot have variance (3:1)" + "SyntaxError: Spread properties cannot have variance. (3:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-2/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-2/output.json index 9822fae01d..a0b64c179d 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":38}}, "errors": [ - "SyntaxError: Unexpected reserved type interface (2:21)" + "SyntaxError: Unexpected reserved type interface. (2:21)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "VariableDeclaration", "start":9,"end":47,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "declarations": [ { "type": "VariableDeclarator", @@ -60,14 +67,7 @@ } } ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + "kind": "const" } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-3/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-3/output.json index f719b76ee8..28c79510d2 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-3/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":45,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":36}}, "errors": [ - "SyntaxError: Unexpected reserved type number (2:22)" + "SyntaxError: Unexpected reserved type number. (2:22)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "VariableDeclaration", "start":9,"end":45,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":36}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "declarations": [ { "type": "VariableDeclarator", @@ -60,14 +67,7 @@ } } ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + "kind": "const" } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-4/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-4/output.json index 0335f33501..4ae2409d44 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-4/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":30}}, "errors": [ - "SyntaxError: Unexpected reserved word 'static' (2:16)" + "SyntaxError: Unexpected reserved word 'static'. (2:16)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "VariableDeclaration", "start":9,"end":39,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":30}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "declarations": [ { "type": "VariableDeclarator", @@ -51,14 +58,7 @@ } } ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + "kind": "const" } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-6/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-6/output.json index 6a21871a82..4b10af5f15 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-6/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-6/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":40}}, "errors": [ - "SyntaxError: Unexpected reserved type interface (2:18)" + "SyntaxError: Unexpected reserved type interface. (2:18)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "VariableDeclaration", "start":9,"end":49,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":40}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": " @flow", + "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} + } + ], "declarations": [ { "type": "VariableDeclarator", @@ -60,14 +67,7 @@ } } ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " @flow", - "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}} - } - ] + "kind": "const" } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/type-annotations/with-default-invalid/output.json b/packages/babel-parser/test/fixtures/flow/type-annotations/with-default-invalid/output.json index 8b2be7f584..fb2ea336b8 100644 --- a/packages/babel-parser/test/fixtures/flow/type-annotations/with-default-invalid/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-annotations/with-default-invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25` (1:20)" + "SyntaxError: Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-generics/async-arrow-invalid/output.json b/packages/babel-parser/test/fixtures/flow/type-generics/async-arrow-invalid/output.json index bccd704e2e..b5a540d6c4 100644 --- a/packages/babel-parser/test/fixtures/flow/type-generics/async-arrow-invalid/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-generics/async-arrow-invalid/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":18,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":18}}, "errors": [ - "SyntaxError: Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}` (1:0)" + "SyntaxError: Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`. (1:0)" ], "program": { "type": "Program", @@ -43,4 +43,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-2/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-2/output.json index cbd99a1995..a6c41f8a55 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:14)" + "SyntaxError: Cannot overwrite reserved type string. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-3/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-3/output.json index 1e241ce546..0f207a703d 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-3/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:14)" + "SyntaxError: Cannot overwrite reserved type string. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-4/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-4/output.json index 4598f3355f..5057feb09e 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-4/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:19)" + "SyntaxError: Cannot overwrite reserved type string. (1:19)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-as/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-as/output.json index 20c6c60731..c023388b22 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-as/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-as/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}}, "errors": [ - "SyntaxError: Unexpected keyword 'debugger' (1:17)" + "SyntaxError: Unexpected keyword 'debugger'. (1:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/output.json index 37af63c099..4ee78d1c3f 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements (1:13)" + "SyntaxError: The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-3/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-3/output.json index 56fba75c81..b2d8bf49aa 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-3/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:16)" + "SyntaxError: Cannot overwrite reserved type string. (1:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-4/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-4/output.json index ff46538a95..ba5a39c96a 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-4/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:14)" + "SyntaxError: Cannot overwrite reserved type string. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand/output.json index 8d2dd58fa4..8cfb38d920 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type-shorthand/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}}, "errors": [ - "SyntaxError: The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements (1:15)" + "SyntaxError: The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type/output.json b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type/output.json index 78cb69bb8d..62cb0339d9 100644 --- a/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-imports/invalid-import-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type string (1:12)" + "SyntaxError: Cannot overwrite reserved type string. (1:12)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_with_jsx/options.json b/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_with_jsx/options.json index c6b625d25a..f29d6f7972 100644 --- a/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_with_jsx/options.json +++ b/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_with_jsx/options.json @@ -1,4 +1,8 @@ { - "plugins": ["flow", "jsx"], - "throws": "Unterminated JSX contents (1:3)" -} + "sourceType": "module", + "plugins": [ + "flow", + "jsx" + ], + "throws": "Unterminated JSX contents. (1:3)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_without_jsx/options.json b/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_without_jsx/options.json index cf72e7dfca..ba4ee9f1ee 100644 --- a/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_without_jsx/options.json +++ b/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/arrow_error_without_jsx/options.json @@ -1,4 +1,7 @@ { - "plugins": ["flow"], - "throws": "Expected an arrow function after this type parameter declaration (1:0)" -} + "sourceType": "module", + "plugins": [ + "flow" + ], + "throws": "Expected an arrow function after this type parameter declaration. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/reserved-word-class-name-failure/output.json b/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/reserved-word-class-name-failure/output.json index 3c1f8ac956..39aa8410a2 100644 --- a/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/reserved-word-class-name-failure/output.json +++ b/packages/babel-parser/test/fixtures/flow/type-parameter-declaration/reserved-word-class-name-failure/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: Unexpected keyword 'delete' (1:14)" + "SyntaxError: Unexpected keyword 'delete'. (1:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_param_instantiation_otherwise/output.json b/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_param_instantiation_otherwise/output.json index ebd1f2cd37..ef23432c66 100644 --- a/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_param_instantiation_otherwise/output.json +++ b/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_param_instantiation_otherwise/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":22}}, "errors": [ - "SyntaxError: `_` is only allowed as a type argument to call or new (2:16)" + "SyntaxError: `_` is only allowed as a type argument to call or new. (2:16)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "VariableDeclaration", "start":8,"end":30,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":22}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "declarations": [ { "type": "VariableDeclarator", @@ -62,14 +69,7 @@ } } ], - "kind": "var", - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + "kind": "var" } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_name/output.json b/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_name/output.json index ab4466e152..2f5e884ae1 100644 --- a/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_name/output.json +++ b/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_name/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":16}}, "errors": [ - "SyntaxError: Cannot overwrite reserved type _ (2:5)" + "SyntaxError: Cannot overwrite reserved type _. (2:5)" ], "program": { "type": "Program", @@ -13,6 +13,13 @@ { "type": "TypeAlias", "start":8,"end":24,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":16}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":13,"end":14,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"_"}, @@ -22,14 +29,7 @@ "right": { "type": "NumberTypeAnnotation", "start":17,"end":23,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":15}} - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_param_name/output.json b/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_param_name/output.json index a0f7c08fca..c12e93560d 100644 --- a/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_param_name/output.json +++ b/packages/babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_param_name/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":20}}, "errors": [ - "SyntaxError: Unexpected reserved type _ (2:13)", - "SyntaxError: `_` is only allowed as a type argument to call or new (2:19)" + "SyntaxError: Unexpected reserved type _. (2:13)", + "SyntaxError: `_` is only allowed as a type argument to call or new. (2:19)" ], "program": { "type": "Program", @@ -14,6 +14,13 @@ { "type": "TypeAlias", "start":8,"end":28,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":20}}, + "leadingComments": [ + { + "type": "CommentLine", + "value": "@flow", + "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} + } + ], "id": { "type": "Identifier", "start":13,"end":20,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":12},"identifierName":"Generic"}, @@ -40,14 +47,7 @@ "start":26,"end":27,"loc":{"start":{"line":2,"column":18},"end":{"line":2,"column":19},"identifierName":"_"}, "name": "_" } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": "@flow", - "start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}} - } - ] + } } ], "directives": [] diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls-with-one-arg/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls-with-one-arg/output.json index 84a61889a5..a903d2f791 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls-with-one-arg/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls-with-one-arg/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:10)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls/output.json index c56ca182c2..a3702166bc 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-calls/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:13)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-optional-calls/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-optional-calls/output.json index 5eb20e808d..5e2301a443 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-optional-calls/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fail-in-optional-calls/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:15)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:15)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fail-without-parens/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fail-without-parens/output.json index 60c8b992e9..b4b1f013c4 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fail-without-parens/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fail-without-parens/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":9,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:5)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:5)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "SequenceExpression", "start":1,"end":8,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":8}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "expressions": [ { "type": "Identifier", @@ -45,11 +49,7 @@ } } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-1/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-1/output.json index 6fef5e5834..515994b7b1 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-1/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":12,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":12}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:2)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-2/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-2/output.json index 2dfd651b7a..101e6aae6b 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-2/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:3)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:3)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ArrayExpression", "start":1,"end":12,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":12}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "elements": [ { "type": "TypeCastExpression", @@ -34,11 +38,7 @@ } } } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-3/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-3/output.json index 98c3f55f97..35a0d73ad0 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-3/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:7)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:7)" ], "program": { "type": "Program", @@ -16,6 +16,10 @@ "expression": { "type": "ArrayExpression", "start":1,"end":17,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":17}}, + "extra": { + "parenthesized": true, + "parenStart": 0 + }, "elements": [ { "type": "Identifier", @@ -45,11 +49,7 @@ } ] } - ], - "extra": { - "parenthesized": true, - "parenStart": 0 - } + ] } } ], diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-4/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-4/output.json index 06d2a6430d..d0d78e0fcb 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-4/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-4/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:9)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-5/output.json b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-5/output.json index 9633347434..95997b8e15 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-5/output.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/fails-in-array-expression-5/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}}, "errors": [ - "SyntaxError: The type cast expression is expected to be wrapped with parenthesis (1:13)" + "SyntaxError: The type cast expression is expected to be wrapped with parenthesis. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid-parenthesized/options.json b/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid-parenthesized/options.json index a1bb4174e9..fa228e4708 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid-parenthesized/options.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid-parenthesized/options.json @@ -1,6 +1,8 @@ { "sourceType": "module", - "plugins": ["flow"], + "plugins": [ + "flow" + ], "createParenthesizedExpressions": true, - "throws": "Expected an arrow function after this type parameter declaration (1:0)" -} + "throws": "Expected an arrow function after this type parameter declaration. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid/options.json b/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid/options.json index ad808bcb8b..ba4ee9f1ee 100644 --- a/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid/options.json +++ b/packages/babel-parser/test/fixtures/flow/typecasts/generic-arrow-func-invalid/options.json @@ -1,5 +1,7 @@ { "sourceType": "module", - "plugins": ["flow"], - "throws": "Expected an arrow function after this type parameter declaration (1:0)" -} + "plugins": [ + "flow" + ], + "throws": "Expected an arrow function after this type parameter declaration. (1:0)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/jsx/errors/attribute-arbitrary-expression/options.json b/packages/babel-parser/test/fixtures/jsx/errors/attribute-arbitrary-expression/options.json index 19a214000f..7499fff99b 100644 --- a/packages/babel-parser/test/fixtures/jsx/errors/attribute-arbitrary-expression/options.json +++ b/packages/babel-parser/test/fixtures/jsx/errors/attribute-arbitrary-expression/options.json @@ -1,3 +1,7 @@ { - "throws": "JSX value should be either an expression or a quoted JSX text (1:9)" -} + "plugins": [ + "jsx", + "flow" + ], + "throws": "JSX value should be either an expression or a quoted JSX text. (1:9)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/jsx/errors/attribute-empty-expression/output.json b/packages/babel-parser/test/fixtures/jsx/errors/attribute-empty-expression/output.json index 404503d865..852e9b82b9 100644 --- a/packages/babel-parser/test/fixtures/jsx/errors/attribute-empty-expression/output.json +++ b/packages/babel-parser/test/fixtures/jsx/errors/attribute-empty-expression/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: JSX attributes must only be assigned a non-empty expression (1:9)" + "SyntaxError: JSX attributes must only be assigned a non-empty expression. (1:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/jsx/errors/unclosed-tag/options.json b/packages/babel-parser/test/fixtures/jsx/errors/unclosed-tag/options.json index 4b723200df..11ed53a9d0 100644 --- a/packages/babel-parser/test/fixtures/jsx/errors/unclosed-tag/options.json +++ b/packages/babel-parser/test/fixtures/jsx/errors/unclosed-tag/options.json @@ -1,3 +1,7 @@ { - "throws": "Unterminated JSX contents (1:5)" -} + "plugins": [ + "jsx", + "flow" + ], + "throws": "Unterminated JSX contents. (1:5)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/jsx/errors/unterminated-string/options.json b/packages/babel-parser/test/fixtures/jsx/errors/unterminated-string/options.json index 78911055bc..4db510afc3 100644 --- a/packages/babel-parser/test/fixtures/jsx/errors/unterminated-string/options.json +++ b/packages/babel-parser/test/fixtures/jsx/errors/unterminated-string/options.json @@ -1,3 +1,7 @@ { - "throws": "Unterminated string constant (1:9)" -} + "plugins": [ + "jsx", + "flow" + ], + "throws": "Unterminated string constant. (1:9)" +} \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag-fragment/output.json b/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag-fragment/output.json index d70e7d0fc1..34879791df 100644 --- a/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag-fragment/output.json +++ b/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag-fragment/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Expected corresponding JSX closing tag for <> (1:2)" + "SyntaxError: Expected corresponding JSX closing tag for <>. (1:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag/output.json b/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag/output.json index 54ddb9bae0..91bc9cb8ca 100644 --- a/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag/output.json +++ b/packages/babel-parser/test/fixtures/jsx/errors/wrong-closing-tag/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":11,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":11}}, "errors": [ - "SyntaxError: Expected corresponding JSX closing tag for (1:5)" + "SyntaxError: Expected corresponding JSX closing tag for . (1:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/jsx/errors/wrong-opening-tag-fragment/output.json b/packages/babel-parser/test/fixtures/jsx/errors/wrong-opening-tag-fragment/output.json index a5d5ef8d53..fddeb88584 100644 --- a/packages/babel-parser/test/fixtures/jsx/errors/wrong-opening-tag-fragment/output.json +++ b/packages/babel-parser/test/fixtures/jsx/errors/wrong-opening-tag-fragment/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}}, "errors": [ - "SyntaxError: Expected corresponding JSX closing tag for (1:11)" + "SyntaxError: Expected corresponding JSX closing tag for . (1:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/placeholders/variable/let-context-3/output.json b/packages/babel-parser/test/fixtures/placeholders/variable/let-context-3/output.json index d4fef28640..0caca0ef9f 100644 --- a/packages/babel-parser/test/fixtures/placeholders/variable/let-context-3/output.json +++ b/packages/babel-parser/test/fixtures/placeholders/variable/let-context-3/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}, "errors": [ - "SyntaxError: Missing semicolon (1:13)" + "SyntaxError: Missing semicolon. (1:13)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/assert-predicate/invalid-escaped-asserts-keyword/output.json b/packages/babel-parser/test/fixtures/typescript/assert-predicate/invalid-escaped-asserts-keyword/output.json index f8e8595b61..f1ae2d68f2 100644 --- a/packages/babel-parser/test/fixtures/typescript/assert-predicate/invalid-escaped-asserts-keyword/output.json +++ b/packages/babel-parser/test/fixtures/typescript/assert-predicate/invalid-escaped-asserts-keyword/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":68,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":68}}, "errors": [ - "SyntaxError: Escape sequence in keyword asserts (1:49)" + "SyntaxError: Escape sequence in keyword asserts. (1:49)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/assign/parenthesized-object-assign/output.json b/packages/babel-parser/test/fixtures/typescript/assign/parenthesized-object-assign/output.json index 69e8d31055..97fb8c0a41 100644 --- a/packages/babel-parser/test/fixtures/typescript/assign/parenthesized-object-assign/output.json +++ b/packages/babel-parser/test/fixtures/typescript/assign/parenthesized-object-assign/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}}, "errors": [ - "SyntaxError: Invalid parenthesized assignment pattern (1:0)" + "SyntaxError: Invalid parenthesized assignment pattern. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-assert-and-assign/output.json b/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-assert-and-assign/output.json index 6497654889..ae1af02f4f 100644 --- a/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-assert-and-assign/output.json +++ b/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-assert-and-assign/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":46,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":29}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)", - "SyntaxError: Invalid left-hand side in assignment expression (2:6)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)", + "SyntaxError: Invalid left-hand side in assignment expression. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-type-assertion-and-assign/output.json b/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-type-assertion-and-assign/output.json index 78450d163a..0251d106c9 100644 --- a/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-type-assertion-and-assign/output.json +++ b/packages/babel-parser/test/fixtures/typescript/cast/unparenthesized-type-assertion-and-assign/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":20}}, "errors": [ - "SyntaxError: Invalid left-hand side in assignment expression (1:0)" + "SyntaxError: Invalid left-hand side in assignment expression. (1:0)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/declare-method/output.json b/packages/babel-parser/test/fixtures/typescript/class/declare-method/output.json index ffa963c815..7d0ed11972 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/declare-method/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/declare-method/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Class methods cannot have the 'declare' modifier (2:2)" + "SyntaxError: Class methods cannot have the 'declare' modifier. (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/declare-new-line-abstract/output.json b/packages/babel-parser/test/fixtures/typescript/class/declare-new-line-abstract/output.json index 04a02c759f..e5c58d18f8 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/declare-new-line-abstract/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/declare-new-line-abstract/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Missing semicolon (1:7)" + "SyntaxError: Missing semicolon. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-1/output.json b/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-1/output.json index 945b98a430..17e2af85eb 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-1/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-1/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Duplicate modifier: 'declare' (2:17)" + "SyntaxError: Duplicate modifier: 'declare'. (2:17)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-2/output.json b/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-2/output.json index d902e7d6b7..e8183c3919 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-2/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/duplicate-modifier-2/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Duplicate modifier: 'declare' (2:24)" + "SyntaxError: Duplicate modifier: 'declare'. (2:24)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-readonly/output.json b/packages/babel-parser/test/fixtures/typescript/class/method-readonly/output.json index 85529184ac..3e9c4477d0 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/method-readonly/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/method-readonly/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Class methods cannot have the 'readonly' modifier (2:4)" + "SyntaxError: Class methods cannot have the 'readonly' modifier. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/modifiers-index-signatures/output.json b/packages/babel-parser/test/fixtures/typescript/class/modifiers-index-signatures/output.json index 45e7aad7b7..e9b9e33e09 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/modifiers-index-signatures/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/modifiers-index-signatures/output.json @@ -2,11 +2,11 @@ "type": "File", "start":0,"end":178,"loc":{"start":{"line":1,"column":0},"end":{"line":7,"column":1}}, "errors": [ - "SyntaxError: Index signatures cannot have the 'abstract' modifier (2:2)", - "SyntaxError: Index signatures cannot have the 'declare' modifier (3:2)", - "SyntaxError: Index signatures cannot have an accessibility modifier ('private') (4:2)", - "SyntaxError: Index signatures cannot have an accessibility modifier ('public') (5:2)", - "SyntaxError: Index signatures cannot have an accessibility modifier ('protected') (6:2)" + "SyntaxError: Index signatures cannot have the 'abstract' modifier. (2:2)", + "SyntaxError: Index signatures cannot have the 'declare' modifier. (3:2)", + "SyntaxError: Index signatures cannot have an accessibility modifier ('private'). (4:2)", + "SyntaxError: Index signatures cannot have an accessibility modifier ('public'). (5:2)", + "SyntaxError: Index signatures cannot have an accessibility modifier ('protected'). (6:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-private/output.json b/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-private/output.json index 5e3dd363ef..655d74e15f 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-private/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-private/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Private elements cannot have an accessibility modifier ('private') (2:2)" + "SyntaxError: Private elements cannot have an accessibility modifier ('private'). (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-protected/output.json b/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-protected/output.json index 8a49738f30..8a42104f41 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-protected/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-protected/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Private elements cannot have an accessibility modifier ('protected') (2:2)" + "SyntaxError: Private elements cannot have an accessibility modifier ('protected'). (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-public/output.json b/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-public/output.json index 0bf961bf50..2dcd125022 100644 --- a/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-public/output.json +++ b/packages/babel-parser/test/fixtures/typescript/class/private-fields-modifier-public/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: Private elements cannot have an accessibility modifier ('public') (2:2)" + "SyntaxError: Private elements cannot have an accessibility modifier ('public'). (2:2)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/import/export-import-type/output.json b/packages/babel-parser/test/fixtures/typescript/import/export-import-type/output.json index e2dc9b3429..7a1e697a78 100644 --- a/packages/babel-parser/test/fixtures/typescript/import/export-import-type/output.json +++ b/packages/babel-parser/test/fixtures/typescript/import/export-import-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":27}}, "errors": [ - "SyntaxError: An import alias can not use 'import type' (1:23)" + "SyntaxError: An import alias can not use 'import type'. (1:23)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/import/type-equals/output.json b/packages/babel-parser/test/fixtures/typescript/import/type-equals/output.json index aa41cc16a5..296d3c9a91 100644 --- a/packages/babel-parser/test/fixtures/typescript/import/type-equals/output.json +++ b/packages/babel-parser/test/fixtures/typescript/import/type-equals/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":18}}, "errors": [ - "SyntaxError: An import alias can not use 'import type' (1:16)", - "SyntaxError: An import alias can not use 'import type' (2:16)" + "SyntaxError: An import alias can not use 'import type'. (1:16)", + "SyntaxError: An import alias can not use 'import type'. (2:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/interface/declare-new-line/output.json b/packages/babel-parser/test/fixtures/typescript/interface/declare-new-line/output.json index 5158d52029..8c0e2f0465 100644 --- a/packages/babel-parser/test/fixtures/typescript/interface/declare-new-line/output.json +++ b/packages/babel-parser/test/fixtures/typescript/interface/declare-new-line/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}}, "errors": [ - "SyntaxError: Missing semicolon (1:7)" + "SyntaxError: Missing semicolon. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/interface/invalid-abstract-interface/output.json b/packages/babel-parser/test/fixtures/typescript/interface/invalid-abstract-interface/output.json index 9e1d3aec78..6321f1d4d6 100644 --- a/packages/babel-parser/test/fixtures/typescript/interface/invalid-abstract-interface/output.json +++ b/packages/babel-parser/test/fixtures/typescript/interface/invalid-abstract-interface/output.json @@ -2,8 +2,8 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":6}}, "errors": [ - "SyntaxError: Missing semicolon (1:8)", - "SyntaxError: Missing semicolon (2:3)" + "SyntaxError: Missing semicolon. (1:8)", + "SyntaxError: Missing semicolon. (2:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/interface/new-line-error/output.json b/packages/babel-parser/test/fixtures/typescript/interface/new-line-error/output.json index f379134be8..5d40fecea3 100644 --- a/packages/babel-parser/test/fixtures/typescript/interface/new-line-error/output.json +++ b/packages/babel-parser/test/fixtures/typescript/interface/new-line-error/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":4}}, "errors": [ - "SyntaxError: Missing semicolon (2:1)" + "SyntaxError: Missing semicolon. (2:1)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/module-declare-new-line/output.json b/packages/babel-parser/test/fixtures/typescript/module-namespace/module-declare-new-line/output.json index 1ba41584fb..eba3117302 100644 --- a/packages/babel-parser/test/fixtures/typescript/module-namespace/module-declare-new-line/output.json +++ b/packages/babel-parser/test/fixtures/typescript/module-namespace/module-declare-new-line/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":2}}, "errors": [ - "SyntaxError: Missing semicolon (6:7)" + "SyntaxError: Missing semicolon. (6:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/output.json b/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/output.json index 5c7e547bf6..a9261e1f6a 100644 --- a/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/output.json +++ b/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":13,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":6}}, "errors": [ - "SyntaxError: Missing semicolon (2:3)" + "SyntaxError: Missing semicolon. (2:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-declare-new-line/output.json b/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-declare-new-line/output.json index 738b0bfc77..03e74714f1 100644 --- a/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-declare-new-line/output.json +++ b/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-declare-new-line/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":2}}, "errors": [ - "SyntaxError: Missing semicolon (6:7)" + "SyntaxError: Missing semicolon. (6:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/output.json b/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/output.json index 33ffb7be10..d238c7782e 100644 --- a/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/output.json +++ b/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":6}}, "errors": [ - "SyntaxError: Missing semicolon (2:3)" + "SyntaxError: Missing semicolon. (2:3)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/top-level-await/output.json b/packages/babel-parser/test/fixtures/typescript/module-namespace/top-level-await/output.json index a99125a44c..545dff304a 100644 --- a/packages/babel-parser/test/fixtures/typescript/module-namespace/top-level-await/output.json +++ b/packages/babel-parser/test/fixtures/typescript/module-namespace/top-level-await/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, "errors": [ - "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules (2:14)" + "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (2:14)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/output.json index b3b42d74d8..050f5b449b 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:6)" + "SyntaxError: Identifier 'A' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/output.json index a1cc8e60fc..50df16c438 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":9}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/output.json index caddda18d8..358e205df6 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":16}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/output.json index baf3fa807a..7d2d9187de 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":9}}, "errors": [ - "SyntaxError: Identifier 'X' has already been declared (2:5)" + "SyntaxError: Identifier 'X' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/output.json index 6a310f8171..337f567e08 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Identifier 'X' has already been declared (2:6)" + "SyntaxError: Identifier 'X' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/output.json index 0660bfd166..8caf509460 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":15}}, "errors": [ - "SyntaxError: Identifier 'X' has already been declared (2:11)" + "SyntaxError: Identifier 'X' has already been declared. (2:11)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/output.json index d254111a61..1064f42ab3 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":17}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:9)" + "SyntaxError: Identifier 'Foo' has already been declared. (2:9)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/output.json index 62bf37e86c..ade778b2ec 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'X' has already been declared (2:10)" + "SyntaxError: Identifier 'X' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/output.json index cf541c4247..d28c882349 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":8}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:4)" + "SyntaxError: Identifier 'Foo' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/output.json index 7b8d2e208c..f03fee5e57 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":16}}, "errors": [ - "SyntaxError: Identifier 'X' has already been declared (2:5)" + "SyntaxError: Identifier 'X' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/output.json index cf541c4247..d28c882349 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":8}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:4)" + "SyntaxError: Identifier 'Foo' has already been declared. (2:4)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/output.json index 2613394dc0..1f2bd5ae89 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":29,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":11}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:5)" + "SyntaxError: Identifier 'Foo' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/output.json index 27a720cd09..f5dbf9b048 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":9}}, "errors": [ - "SyntaxError: Identifier 'X' has already been declared (2:5)" + "SyntaxError: Identifier 'X' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/output.json index cb3f09c087..1287f55c35 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":11}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:5)" + "SyntaxError: Identifier 'Foo' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/output.json index 7738c56de6..bf421c4979 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:6)" + "SyntaxError: Identifier 'A' has already been declared. (2:6)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/output.json index 775af30641..6762159105 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":26,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":9}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/output.json index 2e27314bf5..d491df97f2 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":14}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:10)" + "SyntaxError: Identifier 'A' has already been declared. (2:10)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/output.json index 48fee42b09..82a5b2a878 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":16}}, "errors": [ - "SyntaxError: Identifier 'A' has already been declared (2:5)" + "SyntaxError: Identifier 'A' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/output.json b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/output.json index cb3f09c087..1287f55c35 100644 --- a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/output.json +++ b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":20,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":11}}, "errors": [ - "SyntaxError: Identifier 'Foo' has already been declared (2:5)" + "SyntaxError: Identifier 'Foo' has already been declared. (2:5)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/type-alias/declare-new-line/output.json b/packages/babel-parser/test/fixtures/typescript/type-alias/declare-new-line/output.json index 89ebf2f1f6..54ec72264b 100644 --- a/packages/babel-parser/test/fixtures/typescript/type-alias/declare-new-line/output.json +++ b/packages/babel-parser/test/fixtures/typescript/type-alias/declare-new-line/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":10}}, "errors": [ - "SyntaxError: Missing semicolon (1:7)" + "SyntaxError: Missing semicolon. (1:7)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/types/import-type-dynamic-errors/output.json b/packages/babel-parser/test/fixtures/typescript/types/import-type-dynamic-errors/output.json index 0a28271d34..8c5d3e8427 100644 --- a/packages/babel-parser/test/fixtures/typescript/types/import-type-dynamic-errors/output.json +++ b/packages/babel-parser/test/fixtures/typescript/types/import-type-dynamic-errors/output.json @@ -2,9 +2,9 @@ "type": "File", "start":0,"end":63,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":19}}, "errors": [ - "SyntaxError: Argument in a type import must be a string literal (1:16)", - "SyntaxError: Argument in a type import must be a string literal (2:16)", - "SyntaxError: Argument in a type import must be a string literal (3:16)" + "SyntaxError: Argument in a type import must be a string literal. (1:16)", + "SyntaxError: Argument in a type import must be a string literal. (2:16)", + "SyntaxError: Argument in a type import must be a string literal. (3:16)" ], "program": { "type": "Program", diff --git a/packages/babel-parser/test/fixtures/typescript/types/intrinsic-keyword-error/output.json b/packages/babel-parser/test/fixtures/typescript/types/intrinsic-keyword-error/output.json index ffd6e5a2a9..aeebec90db 100644 --- a/packages/babel-parser/test/fixtures/typescript/types/intrinsic-keyword-error/output.json +++ b/packages/babel-parser/test/fixtures/typescript/types/intrinsic-keyword-error/output.json @@ -2,7 +2,7 @@ "type": "File", "start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}}, "errors": [ - "SyntaxError: Missing semicolon (1:20)" + "SyntaxError: Missing semicolon. (1:20)" ], "program": { "type": "Program", diff --git a/packages/babel-plugin-transform-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json b/packages/babel-plugin-transform-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json index 84442f571d..6379176c71 100644 --- a/packages/babel-plugin-transform-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json +++ b/packages/babel-plugin-transform-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json @@ -1,3 +1,3 @@ { - "throws": "super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?" + "throws": "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?" } diff --git a/packages/babel-preset-env/test/fixtures/top-level-await/unsupported/options.json b/packages/babel-preset-env/test/fixtures/top-level-await/unsupported/options.json index e79b0ad1b1..20761c305c 100644 --- a/packages/babel-preset-env/test/fixtures/top-level-await/unsupported/options.json +++ b/packages/babel-preset-env/test/fixtures/top-level-await/unsupported/options.json @@ -6,5 +6,5 @@ "supportsTopLevelAwait": false }, "presets": ["env"], - "throws": "Unexpected reserved word 'await' (1:0)" + "throws": "Unexpected reserved word 'await'. (1:0)" } diff --git a/packages/babel-preset-typescript/test/fixtures/flow-compat/js-invalid/options.json b/packages/babel-preset-typescript/test/fixtures/flow-compat/js-invalid/options.json index fe0ad873da..285bd0c116 100644 --- a/packages/babel-preset-typescript/test/fixtures/flow-compat/js-invalid/options.json +++ b/packages/babel-preset-typescript/test/fixtures/flow-compat/js-invalid/options.json @@ -1,4 +1,4 @@ { "presets": [["flow", {}, "before"], "typescript", ["flow", {}, "after"]], - "throws": "Unexpected reserved word 'enum' (1:0)" + "throws": "Unexpected reserved word 'enum'. (1:0)" }