mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
Fixes 11 TS conformance tests and 18 babel tests. Adds types to the symbol table functionally conformant to TS behavior but symbol flags implemented slightly differently. Symbol redeclaration check is also not entirely conformant but fixing this seems like a separate PR. For testing purposes - consistent-export-type was also implemented (WIP).
10318 lines
331 KiB
Text
10318 lines
331 KiB
Text
parser_babel Summary:
|
||
AST Parsed : 2072/2078 (99.71%)
|
||
Positive Passed: 2069/2078 (99.57%)
|
||
Negative Passed: 1342/1507 (89.05%)
|
||
Expect Syntax Error: "annex-b/disabled/1.1-html-comments-close/input.js"
|
||
Expect Syntax Error: "annex-b/disabled/3.1-sloppy-labeled-functions/input.js"
|
||
Expect Syntax Error: "annex-b/disabled/3.1-sloppy-labeled-functions-if-body/input.js"
|
||
Expect Syntax Error: "annex-b/disabled/3.1-sloppy-labeled-functions-multiple-labels/input.js"
|
||
Expect Syntax Error: "annex-b/disabled/3.2.4-duplicate-function-in-block/input.js"
|
||
Expect Syntax Error: "annex-b/disabled/3.2.5-duplicate-function-in-switch/input.js"
|
||
Expect Syntax Error: "annex-b/disabled/3.3-function-in-if-body/input.js"
|
||
Expect Syntax Error: "annex-b/disabled/3.5-for-in-initializer/input.js"
|
||
Expect Syntax Error: "annex-b/enabled/3.1-sloppy-labeled-functions-if-body/input.js"
|
||
Expect Syntax Error: "core/categorized/invalid-fn-decl-labeled-inside-if/input.js"
|
||
Expect Syntax Error: "core/categorized/invalid-fn-decl-labeled-inside-loop/input.js"
|
||
Expect Syntax Error: "core/escape-string/non-octal-eight-and-nine/input.js"
|
||
Expect Syntax Error: "core/escape-string/non-octal-eight-and-nine-before-use-strict/input.js"
|
||
Expect Syntax Error: "core/scope/dupl-bind-catch-func/input.js"
|
||
Expect Syntax Error: "core/scope/dupl-bind-func-var-sloppy/input.js"
|
||
Expect Syntax Error: "es2015/class-methods/direct-super-in-object-method/input.js"
|
||
Expect Syntax Error: "es2015/destructuring/error-operator-for-default/input.js"
|
||
Expect Syntax Error: "es2015/for-of/invalid-let-as-identifier/input.js"
|
||
Expect Syntax Error: "es2015/object/disallow-duplicate-method-params/input.js"
|
||
Expect Syntax Error: "es2015/uncategorised/.191/input.js"
|
||
Expect Syntax Error: "es2015/uncategorised/.335/input.js"
|
||
Expect Syntax Error: "es2015/uncategorised/.343/input.js"
|
||
Expect Syntax Error: "es2015/uncategorised/220/input.js"
|
||
Expect Syntax Error: "es2015/uncategorised/297/input.js"
|
||
Expect Syntax Error: "es2017/async-functions/await-binding-inside-arrow-params-inside-async-arrow-params/input.js"
|
||
Expect Syntax Error: "es2017/trailing-function-commas/7/input.js"
|
||
Expect Syntax Error: "es2018/object-rest-spread/24/input.js"
|
||
Expect Syntax Error: "es2018/object-rest-spread/comma-after-rest/input.js"
|
||
Expect Syntax Error: "es2018/object-rest-spread/comma-after-spread-for-in/input.js"
|
||
Expect Syntax Error: "es2018/object-rest-spread/comma-after-spread-nested/input.js"
|
||
Expect Syntax Error: "es2018/object-rest-spread/no-pattern-in-rest/input.js"
|
||
Expect Syntax Error: "es2018/object-rest-spread/no-pattern-in-rest-with-ts/input.js"
|
||
Expect Syntax Error: "es2020/dynamic-import/invalid-trailing-comma/input.js"
|
||
Expect Syntax Error: "esprima/es2015-arrow-function/invalid-param-strict-mode/input.js"
|
||
Expect Syntax Error: "esprima/es2015-generator/.generator-parameter-binding-property-reserved/input.js"
|
||
Expect Syntax Error: "esprima/es2015-identifier/.invalid_function_wait/input.js"
|
||
Expect Syntax Error: "esprima/expression-primary-literal-regular-expression/.migrated_0005/input.js"
|
||
Expect Syntax Error: "esprima/expression-primary-literal-regular-expression/.migrated_0006/input.js"
|
||
Expect Syntax Error: "esprima/expression-primary-literal-regular-expression/.u-flag-invalid-range-4-hex/input.js"
|
||
Expect Syntax Error: "esprima/expression-primary-literal-regular-expression/.u-flag-invalid-range-var-hex/input.js"
|
||
Expect Syntax Error: "esprima/invalid-syntax/.GH-1106-09/input.js"
|
||
Expect Syntax Error: "esprima/invalid-syntax/.migrated_0035/input.js"
|
||
Expect Syntax Error: "esprima/invalid-syntax/migrated_0101/input.js"
|
||
Expect Syntax Error: "esprima/rest-parameter/invalid-setter-rest/input.js"
|
||
Expect Syntax Error: "esprima/statement-if/.migrated_0003/input.js"
|
||
Expect Syntax Error: "esprima/statement-iteration/.migrated_0021/input.js"
|
||
Expect Syntax Error: "esprima/statement-iteration/.pattern-in-for-in/input.js"
|
||
Expect Syntax Error: "typescript/arrow-function/async-rest-optional-parameter/input.ts"
|
||
Expect Syntax Error: "typescript/cast/satisfies-const-error/input.ts"
|
||
Expect Syntax Error: "typescript/cast/unparenthesized-assert-and-assign/input.ts"
|
||
Expect Syntax Error: "typescript/cast/unparenthesized-type-assertion-and-assign/input.ts"
|
||
Expect Syntax Error: "typescript/class/abstract-method-in-non-abstract-class-1/input.ts"
|
||
Expect Syntax Error: "typescript/class/abstract-method-in-non-abstract-class-2/input.ts"
|
||
Expect Syntax Error: "typescript/class/abstract-method-in-non-abstract-class-3/input.ts"
|
||
Expect Syntax Error: "typescript/class/abstract-method-with-body/input.ts"
|
||
Expect Syntax Error: "typescript/class/abstract-method-with-body-computed/input.ts"
|
||
Expect Syntax Error: "typescript/class/abstract-property-initializer/input.ts"
|
||
Expect Syntax Error: "typescript/class/accessor-invalid/input.ts"
|
||
Expect Syntax Error: "typescript/class/constructor-with-invalid-order-modifiers-1/input.ts"
|
||
Expect Syntax Error: "typescript/class/constructor-with-invalid-order-modifiers-2/input.ts"
|
||
Expect Syntax Error: "typescript/class/constructor-with-invalid-order-modifiers-3/input.ts"
|
||
Expect Syntax Error: "typescript/class/constructor-with-type-parameters/input.ts"
|
||
Expect Syntax Error: "typescript/class/constructor-with-type-parameters-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/class/declare-accessor/input.ts"
|
||
Expect Syntax Error: "typescript/class/declare-field-initializer/input.ts"
|
||
Expect Syntax Error: "typescript/class/declare-initializer/input.ts"
|
||
Expect Syntax Error: "typescript/class/declare-method/input.ts"
|
||
Expect Syntax Error: "typescript/class/declare-readonly-field-initializer-w-annotation/input.ts"
|
||
Expect Syntax Error: "typescript/class/duplicate-modifier-1/input.ts"
|
||
Expect Syntax Error: "typescript/class/duplicate-modifier-2/input.ts"
|
||
Expect Syntax Error: "typescript/class/duplicates-accessibility/input.ts"
|
||
Expect Syntax Error: "typescript/class/empty-type-parameters/input.ts"
|
||
Expect Syntax Error: "typescript/class/generator-method-with-modifiers/input.ts"
|
||
Expect Syntax Error: "typescript/class/index-signature-errors/input.ts"
|
||
Expect Syntax Error: "typescript/class/invalid-modifiers-order/input.ts"
|
||
Expect Syntax Error: "typescript/class/method-readonly/input.ts"
|
||
Expect Syntax Error: "typescript/class/modifiers-incompatible/input.ts"
|
||
Expect Syntax Error: "typescript/class/modifiers-index-signatures/input.ts"
|
||
Expect Syntax Error: "typescript/class/modifiers-invalid-order/input.ts"
|
||
Expect Syntax Error: "typescript/class/modifiers-override-errors/input.ts"
|
||
Expect Syntax Error: "typescript/class/parameter-properties-binding-patterns/input.ts"
|
||
Expect Syntax Error: "typescript/class/parameter-properties-not-constructor/input.ts"
|
||
Expect Syntax Error: "typescript/class/private-fields-modifier-abstract/input.ts"
|
||
Expect Syntax Error: "typescript/class/private-fields-modifier-private/input.ts"
|
||
Expect Syntax Error: "typescript/class/private-fields-modifier-protected/input.ts"
|
||
Expect Syntax Error: "typescript/class/private-fields-modifier-public/input.ts"
|
||
Expect Syntax Error: "typescript/class/property-optional-definite-assignment-not-allowed/input.ts"
|
||
Expect Syntax Error: "typescript/declare/function/input.ts"
|
||
Expect Syntax Error: "typescript/declare/module-class/input.ts"
|
||
Expect Syntax Error: "typescript/declare/module-function/input.ts"
|
||
Expect Syntax Error: "typescript/declare/namespace-class/input.ts"
|
||
Expect Syntax Error: "typescript/declare/namespace-function/input.ts"
|
||
Expect Syntax Error: "typescript/decorators/type-arguments-invalid/input.ts"
|
||
Expect Syntax Error: "typescript/disallow-jsx-ambiguity/type-assertion/input.ts"
|
||
Expect Syntax Error: "typescript/disallow-jsx-ambiguity/type-parameter/input.ts"
|
||
Expect Syntax Error: "typescript/disallow-jsx-ambiguity/type-parameter-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/dts/invalid-class-implementation/input.ts"
|
||
Expect Syntax Error: "typescript/dts/invalid-class-initializer/input.ts"
|
||
Expect Syntax Error: "typescript/expect-plugin/export-interface/input.js"
|
||
Expect Syntax Error: "typescript/expect-plugin/export-type/input.js"
|
||
Expect Syntax Error: "typescript/expect-plugin/export-type-named/input.js"
|
||
Expect Syntax Error: "typescript/export/double-declare/input.ts"
|
||
Expect Syntax Error: "typescript/export/equals-in-script/input.ts"
|
||
Expect Syntax Error: "typescript/function/empty-type-parameters/input.ts"
|
||
Expect Syntax Error: "typescript/function/parameter-properties/input.ts"
|
||
Expect Syntax Error: "typescript/function/pattern-optional-parameters/input.ts"
|
||
Expect Syntax Error: "typescript/function/pattern-optional-parameters-arrow/input.ts"
|
||
Expect Syntax Error: "typescript/import/equals-in-script/input.ts"
|
||
Expect Syntax Error: "typescript/import/equals-require-in-script/input.ts"
|
||
Expect Syntax Error: "typescript/import/export-import-type/input.ts"
|
||
Expect Syntax Error: "typescript/import/type-equals/input.ts"
|
||
Expect Syntax Error: "typescript/interface/abstract/input.ts"
|
||
Expect Syntax Error: "typescript/interface/export-abstract-interface/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-optional-parameter/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-optional-parameter-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-parameters/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-parameters-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-reset-parameter/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-reset-parameter-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-this-parameters/input.ts"
|
||
Expect Syntax Error: "typescript/interface/get-set-invalid-this-parameters-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/interface/invalid-modifiers-method/input.ts"
|
||
Expect Syntax Error: "typescript/interface/invalid-modifiers-method-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/interface/invalid-modifiers-property/input.ts"
|
||
Expect Syntax Error: "typescript/regression/keyword-qualified-type-disallowed/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-block-with-accessibility-private-01/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-block-with-accessibility-protected-01/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-block-with-accessibility-public-01/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-block-with-modifier-abstract-01/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-block-with-modifier-override-01/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-block-with-modifier-override-01/invalid-static-block-with-modifier-abstract/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-block-with-modifier-static/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-blocks-with-modifer-declare-01/input.ts"
|
||
Expect Syntax Error: "typescript/static-blocks/invalid-static-blocks-with-modifier-readonly-01/input.ts"
|
||
Expect Syntax Error: "typescript/tsx/invalid-gt-arrow-like/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/call-optional-chain-invalid/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-function/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-interface-extends/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-interface-implements/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-new/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-superclass/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-tsx/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-type-import/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/empty-type-ref/input.ts"
|
||
Expect Syntax Error: "typescript/type-arguments/instantiation-expression-property-access/input.ts"
|
||
Expect Syntax Error: "typescript/type-only-import-export-specifiers/export-invalid-type-in-type/input.ts"
|
||
Expect Syntax Error: "typescript/type-only-import-export-specifiers/import-invalid-type-in-type/input.ts"
|
||
Expect Syntax Error: "typescript/types/const-type-parameters-invalid/input.ts"
|
||
Expect Syntax Error: "typescript/types/const-type-parameters-invalid-babel-7/input.ts"
|
||
Expect Syntax Error: "typescript/types/import-type-declaration-error/input.ts"
|
||
Expect Syntax Error: "typescript/types/import-type-dynamic-errors/input.ts"
|
||
Expect Syntax Error: "typescript/types/intrinsic-keyword-error/input.ts"
|
||
Expect Syntax Error: "typescript/types/no-annotation-in-destructuring/input.ts"
|
||
Expect Syntax Error: "typescript/types/no-optional-in-destructuring/input.ts"
|
||
Expect Syntax Error: "typescript/types/no-optional-in-destructuring-in-params/input.ts"
|
||
Expect Syntax Error: "typescript/types/read-only-1/input.ts"
|
||
Expect Syntax Error: "typescript/types/read-only-2/input.ts"
|
||
Expect Syntax Error: "typescript/types/read-only-3/input.ts"
|
||
Expect Syntax Error: "typescript/types/read-only-4/input.ts"
|
||
Expect Syntax Error: "typescript/types/tuple-labeled-after-unlabeled/input.ts"
|
||
Expect Syntax Error: "typescript/types/tuple-labeled-before-unlabeled/input.ts"
|
||
Expect Syntax Error: "typescript/types/tuple-optional-invalid/input.ts"
|
||
Expect Syntax Error: "typescript/types/tuple-required-after-labeled-optional/input.ts"
|
||
Expect Syntax Error: "typescript/types/tuple-unlabeled-spread-after-labeled/input.ts"
|
||
Expect Syntax Error: "typescript/types/tuple-unlabeled-spread-before-labeled/input.ts"
|
||
Expect to Parse: "core/opts/allowNewTargetOutsideFunction-true/input.js"
|
||
× Unexpected new.target expression
|
||
╭─[core/opts/allowNewTargetOutsideFunction-true/input.js:1:1]
|
||
1 │ const x = new.target;
|
||
· ──────────
|
||
2 │ const y = () => new.target;
|
||
╰────
|
||
help: new.target is only allowed in constructors and functions invoked using thew `new` operator
|
||
|
||
× Unexpected new.target expression
|
||
╭─[core/opts/allowNewTargetOutsideFunction-true/input.js:1:1]
|
||
1 │ const x = new.target;
|
||
2 │ const y = () => new.target;
|
||
· ──────────
|
||
╰────
|
||
help: new.target is only allowed in constructors and functions invoked using thew `new` operator
|
||
|
||
Expect to Parse: "typescript/arrow-function/generic-tsx-babel-7/input.ts"
|
||
× Expected `<` but found `EOF`
|
||
╭─[typescript/arrow-function/generic-tsx-babel-7/input.ts:2:1]
|
||
2 │ <T>(a: T): T => a;
|
||
╰────
|
||
|
||
Expect to Parse: "typescript/class/constructor-with-modifier-names/input.ts"
|
||
× Multiple constructor implementations are not allowed.
|
||
╭─[typescript/class/constructor-with-modifier-names/input.ts:1:1]
|
||
1 │ class Foo {
|
||
2 │ constructor(set, readonly) {}
|
||
· ─────┬─────
|
||
· ╰── constructor has already been declared here
|
||
3 │ constructor(set: any, readonly: boolean) {}
|
||
· ─────┬─────
|
||
· ╰── it cannot be redeclared here
|
||
4 │ }
|
||
╰────
|
||
|
||
Expect to Parse: "typescript/interface/get-set-properties/input.ts"
|
||
× Expected `(` but found `:`
|
||
╭─[typescript/interface/get-set-properties/input.ts:1:1]
|
||
1 │ interface Foo {
|
||
2 │ get foo: string;
|
||
· ┬
|
||
· ╰── `(` expected
|
||
3 │ set bar: string;
|
||
╰────
|
||
|
||
Expect to Parse: "typescript/module-namespace/body-nested-declare/input.ts"
|
||
× Missing initializer in const declaration
|
||
╭─[typescript/module-namespace/body-nested-declare/input.ts:2:1]
|
||
2 │ namespace B {
|
||
3 │ const x: number;
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
|
||
Expect to Parse: "typescript/regression/nested-extends-in-arrow-type-param/input.ts"
|
||
× Expected `,` but found `extends`
|
||
╭─[typescript/regression/nested-extends-in-arrow-type-param/input.ts:1:1]
|
||
1 │ type Equals = A extends (x: B extends C ? D : E) => 0 ? F : G;
|
||
· ───┬───
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
Expect to Parse: "typescript/regression/nested-extends-in-arrow-type-param-babel-7/input.ts"
|
||
× Expected `,` but found `extends`
|
||
╭─[typescript/regression/nested-extends-in-arrow-type-param-babel-7/input.ts:1:1]
|
||
1 │ type Equals = A extends (x: B extends C ? D : E) => 0 ? F : G;
|
||
· ───┬───
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
Expect to Parse: "typescript/types/const-type-parameters/input.ts"
|
||
× Unexpected token
|
||
╭─[typescript/types/const-type-parameters/input.ts:13:1]
|
||
13 │ class C<T, const U> {}
|
||
14 │ class D<in const T> {}
|
||
· ─────
|
||
15 │ class E<const in T> {}
|
||
╰────
|
||
|
||
Expect to Parse: "typescript/types/const-type-parameters-babel-7/input.ts"
|
||
× Unexpected token
|
||
╭─[typescript/types/const-type-parameters-babel-7/input.ts:13:1]
|
||
13 │ class C<T, const U> {}
|
||
14 │ class D<in const T> {}
|
||
· ─────
|
||
15 │ class E<const in T> {}
|
||
╰────
|
||
|
||
× Identifier `f` has already been declared
|
||
╭─[annex-b/disabled/3.4-var-redeclaration-catch-binding/input.js:1:1]
|
||
1 │ try {} catch (e) { var e; }
|
||
2 │ try {} catch ({ f }) { var f; }
|
||
· ┬ ┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `f` has already been declared here
|
||
╰────
|
||
|
||
× Identifier `f` has already been declared
|
||
╭─[annex-b/enabled/3.4-var-redeclaration-catch-binding/input.js:1:1]
|
||
1 │ try {} catch (e) { var e; }
|
||
2 │ try {} catch ({ f }) { var f; }
|
||
· ┬ ┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `f` has already been declared here
|
||
╰────
|
||
|
||
× Expected `;` but found `Identifier`
|
||
╭─[core/categorized/for-missing-semicolons/input.js:2:1]
|
||
2 │ var a = 1
|
||
3 │ a < 3
|
||
· ┬
|
||
· ╰── `;` expected
|
||
4 │ a++
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-1/input.js:1:1]
|
||
1 │ (a = 1) = t
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-2/input.js:1:1]
|
||
1 │ [(a = 1)] = t
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-3/input.js:1:1]
|
||
1 │ [({ a: [b = 2]})] = t
|
||
· ───────────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-4/input.js:1:1]
|
||
1 │ [{b: [([a = 1])]}] = t
|
||
· ─────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-5/input.js:1:1]
|
||
1 │ [([x])] = t;
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-6/input.js:1:1]
|
||
1 │ (a += 1) = t
|
||
· ──────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-7/input.js:1:1]
|
||
1 │ (a -= 1) = t
|
||
· ──────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-8/input.js:1:1]
|
||
1 │ (b = (a -= 1)) = t
|
||
· ────────────
|
||
╰────
|
||
|
||
× Invalid function declaration
|
||
╭─[core/categorized/invalid-fn-decl-inside-loop/input.js:1:1]
|
||
1 │ while (1) function foo(){}
|
||
· ────────────────
|
||
╰────
|
||
help: In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-left-hand-side-in-postfix-operation/input.js:1:1]
|
||
1 │ a++ = t
|
||
· ───
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-left-hand-side-in-prefix-operation/input.js:1:1]
|
||
1 │ ++a = t
|
||
· ───
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/categorized/malformed-switch/input.js:1:1]
|
||
1 │ switch (x) {
|
||
2 │ var y = 5;
|
||
· ───
|
||
3 │ }
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern/input.js:1:1]
|
||
1 │ ({x}) = {x: 1};
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-2/input.js:1:1]
|
||
1 │ [{b: [([a = 1])]}] = t
|
||
· ─────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-3/input.js:1:1]
|
||
1 │ [({ a: [b = 2]})] = t
|
||
· ───────────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-4/input.js:1:1]
|
||
1 │ [(a = 1)] = t
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-5/input.js:1:1]
|
||
1 │ (a = 1) = t
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-6/input.js:1:1]
|
||
1 │ ([a]) = []
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-left-hand-side/input.js:1:1]
|
||
1 │ (!a) += 1
|
||
· ──
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/create-parenthesized-expressions/invalid-pattern-in-rest-binding/input.js:1:1]
|
||
1 │ ([...(a)]) => {}
|
||
· ─
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/valid-parenthesized-assignment-array-pattern-3/input.js:1:1]
|
||
1 │ [([x])] = t;
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/escape-keyword/invalid/input.js:2:1]
|
||
2 │ br\u{65}ak
|
||
3 │ };
|
||
· ─
|
||
╰────
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive/input.js:1:1]
|
||
1 │ "\01 foo \02 bar \03";
|
||
· ─────────────────────
|
||
2 │
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive/input.js:2:1]
|
||
2 │
|
||
3 │ "\4";
|
||
· ────
|
||
4 │ "\5";
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive/input.js:3:1]
|
||
3 │ "\4";
|
||
4 │ "\5";
|
||
· ────
|
||
5 │
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive/input.js:7:1]
|
||
7 │
|
||
8 │ "\4";
|
||
· ────
|
||
9 │ "\5";
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive/input.js:8:1]
|
||
8 │ "\4";
|
||
9 │ "\5";
|
||
· ────
|
||
10 │
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive/input.js:10:1]
|
||
10 │
|
||
11 │ "\04 foo \05 bar \06";
|
||
· ─────────────────────
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive-function/input.js:1:1]
|
||
1 │ function a() {
|
||
2 │ "\5";
|
||
· ────
|
||
3 │ "use strict";
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive-function/input.js:6:1]
|
||
6 │ function b() {
|
||
7 │ "\4";
|
||
· ────
|
||
8 │ "\5";
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive-function/input.js:7:1]
|
||
7 │ "\4";
|
||
8 │ "\5";
|
||
· ────
|
||
9 │ "use strict";
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive-function/input.js:13:1]
|
||
13 │ "use strict";
|
||
14 │ "\5";
|
||
· ────
|
||
15 │ }
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive-function/input.js:18:1]
|
||
18 │ "use strict";
|
||
19 │ "\4";
|
||
· ────
|
||
20 │ "\5";
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/invalid-decimal-escape-strict-directive-function/input.js:19:1]
|
||
19 │ "\4";
|
||
20 │ "\5";
|
||
· ────
|
||
21 │ }
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/numeric-escape-in-directive/input.js:1:1]
|
||
1 │ function hello() { "use strict"; function inner() { "octal directive\1"; } }
|
||
· ───────────────────
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/escape-string/numeric-escape-in-property-name/input.js:1:1]
|
||
1 │ function hello() { 'use strict'; ({ "\1": 42 }); }
|
||
· ────
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[core/escape-template/non-octal-eight/input.js:1:1]
|
||
1 │ `\8`;
|
||
· ──
|
||
╰────
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[core/escape-template/non-octal-nine/input.js:1:1]
|
||
1 │ `\9`;
|
||
· ──
|
||
╰────
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/legacy-octal/legacy-octal-after-use-strict/input.js:1:1]
|
||
1 │ "use strict"; 04; 05;
|
||
· ──
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/legacy-octal/legacy-octal-after-use-strict/input.js:1:1]
|
||
1 │ "use strict"; 04; 05;
|
||
· ──
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/legacy-octal/legacy-octal-after-use-strict-function/input.js:2:1]
|
||
2 │ "use strict";
|
||
3 │ 05;
|
||
· ──
|
||
4 │ }
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/legacy-octal/legacy-octal-after-use-strict-function/input.js:7:1]
|
||
7 │ "use strict";
|
||
8 │ 04;
|
||
· ──
|
||
9 │ 05;
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/legacy-octal/legacy-octal-after-use-strict-function/input.js:8:1]
|
||
8 │ 04;
|
||
9 │ 05;
|
||
· ──
|
||
10 │ }
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[core/object/invalid-escape-get/input.js:1:1]
|
||
1 │ ({ ge\u0074 x() {} })
|
||
· ────────
|
||
╰────
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[core/object/invalid-setter/input.js:1:1]
|
||
1 │ ({ set x(){} })
|
||
· ──
|
||
╰────
|
||
|
||
× Expected `(` but found `await`
|
||
╭─[core/opts/allowAwaitOutsideFunction-false/input.js:1:1]
|
||
1 │ for await (const i of imports) {}
|
||
· ──┬──
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Unexpected new.target expression
|
||
╭─[core/opts/allowNewTargetOutsideFunction-false/input.js:1:1]
|
||
1 │ const x = new.target;
|
||
· ──────────
|
||
╰────
|
||
help: new.target is only allowed in constructors and functions invoked using thew `new` operator
|
||
|
||
× Unexpected new.target expression
|
||
╭─[core/opts/allowNewTargetOutsideFunction-false-2/input.js:1:1]
|
||
1 │ const y = () => new.target;
|
||
· ──────────
|
||
╰────
|
||
help: new.target is only allowed in constructors and functions invoked using thew `new` operator
|
||
|
||
× Unexpected token
|
||
╭─[core/regression/13694-invalid-dot-bracketL-member/input.js:1:1]
|
||
1 │ a.[b]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/regression/T2921/input.js:1:1]
|
||
1 │ a <== b;
|
||
· ─
|
||
╰────
|
||
|
||
× Decimals with leading zeros are not allowed in strict mode
|
||
╭─[core/regression/non-octal-float-strict-mode/input.js:1:1]
|
||
1 │ 09.5
|
||
· ────
|
||
╰────
|
||
help: remove the leading zero
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/regression/octal-float-fail/input.js:1:1]
|
||
1 │ 07.5
|
||
· ▲
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-2nd-lvl-lex/input.js:1:1]
|
||
1 │ let bar;
|
||
2 │ var foo = 1;
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
3 │ let foo = 1;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-2nd-lvl-lex-nested/input.js:2:1]
|
||
2 │ let bar;
|
||
3 │ var foo = 1;
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
4 │ let foo = 1;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
5 │ }
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-2nd-lvl-var/input.js:1:1]
|
||
1 │ let bar;
|
||
2 │ let foo = 1;
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
3 │ var foo = 1;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-2nd-lvl-var-nested/input.js:2:1]
|
||
2 │ let bar;
|
||
3 │ let foo = 1;
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
4 │ var foo = 1;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
5 │ }
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-catch-arr-destr/input.js:1:1]
|
||
1 │ try {
|
||
2 │ } catch ([foo, foo]) {
|
||
· ─┬─ ─┬─
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `foo` has already been declared here
|
||
3 │ }
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-catch-dbl-let/input.js:1:1]
|
||
1 │ let foo; try {} catch (foo) {} let foo;
|
||
· ─┬─ ─┬─
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `foo` has already been declared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-catch-let/input.js:1:1]
|
||
1 │ try {
|
||
2 │ } catch (foo) {
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
3 │ let foo;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
4 │ }
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-catch-obj-destr/input.js:1:1]
|
||
1 │ try {
|
||
2 │ } catch ({ a: foo, b: { c: [foo] } }) {
|
||
· ─┬─ ─┬─
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `foo` has already been declared here
|
||
3 │ }
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-catch-var-arr-destr/input.js:1:1]
|
||
1 │ try {
|
||
2 │ } catch ([foo]) {
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
3 │ var foo;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
4 │ }
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-catch-var-obj-destr/input.js:1:1]
|
||
1 │ try {
|
||
2 │ } catch ({ foo }) {
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
3 │ var foo;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
4 │ }
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-class-class/input.js:1:1]
|
||
1 │ class foo {};
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
2 │ class foo {};
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-class-const/input.js:1:1]
|
||
1 │ class foo {};
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
2 │ const foo = 1;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-class-func/input.js:1:1]
|
||
1 │ class foo {};
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
2 │ function foo () {};
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-class-let/input.js:1:1]
|
||
1 │ class foo {};
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
2 │ let foo = 1;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-class-var/input.js:1:1]
|
||
1 │ class foo {};
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
2 │ var foo;
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-const-const/input.js:1:1]
|
||
1 │ const foo=1, foo=2;
|
||
· ─┬─ ─┬─
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `foo` has already been declared here
|
||
╰────
|
||
|
||
× Identifier `f` has already been declared
|
||
╭─[core/scope/dupl-bind-func-gen/input.js:1:1]
|
||
1 │ { function f() {} function* f() {} }
|
||
· ┬ ┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `f` has already been declared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-func-module/input.js:1:1]
|
||
1 │ function foo() {}
|
||
· ─┬─
|
||
· ╰── `foo` has already been declared here
|
||
2 │ function foo() {}
|
||
· ─┬─
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-func-module-sloppy/input.js:1:1]
|
||
1 │ { function foo() {} function foo() {} }
|
||
· ─┬─ ─┬─
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `foo` has already been declared here
|
||
╰────
|
||
|
||
× Identifier `f` has already been declared
|
||
╭─[core/scope/dupl-bind-gen-func/input.js:1:1]
|
||
1 │ { function* f() {} function f() {} }
|
||
· ┬ ┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `f` has already been declared here
|
||
╰────
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-let-let/input.js:1:1]
|
||
1 │ let foo, foo;
|
||
· ─┬─ ─┬─
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `foo` has already been declared here
|
||
╰────
|
||
|
||
× Identifier `a` has already been declared
|
||
╭─[core/scope/dupl-bind-nested-let-var/input.js:1:1]
|
||
1 │ {
|
||
2 │ let a;
|
||
· ┬
|
||
· ╰── `a` has already been declared here
|
||
3 │ { var a; }
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
4 │ }
|
||
╰────
|
||
|
||
× Identifier `i` has already been declared
|
||
╭─[core/scope/for-var/input.js:1:1]
|
||
1 │ for (let i = 0;;) {
|
||
· ┬
|
||
· ╰── `i` has already been declared here
|
||
2 │ var i;
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
3 │ }
|
||
╰────
|
||
|
||
× Export 'encrypt' is not defined
|
||
╭─[core/scope/undecl-export/input.js:1:1]
|
||
1 │ export { encrypt };
|
||
· ───────
|
||
╰────
|
||
|
||
× Export 'encrypt' is not defined
|
||
╭─[core/scope/undecl-export-as/input.js:1:1]
|
||
1 │ export { encrypt as decrypt };
|
||
· ───────
|
||
2 │ function decrypt() {}
|
||
╰────
|
||
|
||
× Export 'encrypt' is not defined
|
||
╭─[core/scope/undecl-export-as-default/input.js:1:1]
|
||
1 │ export { encrypt as default };
|
||
· ───────
|
||
╰────
|
||
|
||
× Export 'encrypt' is not defined
|
||
╭─[core/scope/undecl-export-block/input.js:3:1]
|
||
3 │ }
|
||
4 │ export { encrypt }
|
||
· ───────
|
||
╰────
|
||
|
||
× Export 'Object' is not defined
|
||
╭─[core/scope/undecl-export-builtin/input.js:1:1]
|
||
1 │ export { Object };
|
||
· ──────
|
||
╰────
|
||
|
||
× Export 'Object' is not defined
|
||
╭─[core/scope/undecl-export-builtin-as/input.js:1:1]
|
||
1 │ export { Object as Obj };
|
||
· ──────
|
||
╰────
|
||
|
||
× Invalid function declaration
|
||
╭─[core/scope/undecl-export-if/input.js:1:1]
|
||
1 │ export { encrypt };
|
||
2 │ if (true) function encrypt() {}
|
||
· ─────────────────────
|
||
╰────
|
||
help: In strict mode code, functions can only be declared at top level or inside a block
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[core/uncategorised/.542/input.js:1:1]
|
||
1 │ ({ get prop(x) {} })
|
||
· ───
|
||
╰────
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[core/uncategorised/.543/input.js:1:1]
|
||
1 │ ({ set prop() {} })
|
||
· ──
|
||
╰────
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[core/uncategorised/.544/input.js:1:1]
|
||
1 │ ({ set prop(x, y) {} })
|
||
· ──────
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/108/input.js:1:1]
|
||
1 │ var x = /[P QR]/\u0067
|
||
· ▲
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/345/input.js:1:1]
|
||
1 │ {
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/346/input.js:1:1]
|
||
1 │ }
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Character `a`
|
||
╭─[core/uncategorised/347/input.js:1:1]
|
||
1 │ 3ea
|
||
· ▲
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/347/input.js:1:1]
|
||
1 │ 3ea
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/348/input.js:1:1]
|
||
1 │ 3in []
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected end of file
|
||
╭─[core/uncategorised/349/input.js:1:1]
|
||
1 │ 3e
|
||
╰────
|
||
|
||
× Invalid Number invalid float
|
||
╭─[core/uncategorised/349/input.js:1:1]
|
||
1 │ 3e
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected end of file
|
||
╭─[core/uncategorised/350/input.js:1:1]
|
||
1 │ 3e+
|
||
╰────
|
||
|
||
× Invalid Number invalid float
|
||
╭─[core/uncategorised/350/input.js:1:1]
|
||
1 │ 3e+
|
||
· ───
|
||
╰────
|
||
|
||
× Unexpected end of file
|
||
╭─[core/uncategorised/351/input.js:1:1]
|
||
1 │ 3e-
|
||
╰────
|
||
|
||
× Invalid Number invalid float
|
||
╭─[core/uncategorised/351/input.js:1:1]
|
||
1 │ 3e-
|
||
· ───
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/352/input.js:1:1]
|
||
1 │ 3x
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/353/input.js:1:1]
|
||
1 │ 3x0
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected end of file
|
||
╭─[core/uncategorised/354/input.js:1:1]
|
||
1 │ 0x
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/357/input.js:1:1]
|
||
1 │ 01a
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/358/input.js:1:1]
|
||
1 │ 3in[]
|
||
· ──
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/359/input.js:1:1]
|
||
1 │ 0x3in[]
|
||
· ──
|
||
╰────
|
||
|
||
× Unterminated string
|
||
╭─[core/uncategorised/360/input.js:1:1]
|
||
1 │ "Hello
|
||
· ───────
|
||
2 │ World"
|
||
╰────
|
||
|
||
× Invalid Character `\`
|
||
╭─[core/uncategorised/362/input.js:1:1]
|
||
1 │ x\u005c
|
||
╰────
|
||
|
||
× Invalid Character `*`
|
||
╭─[core/uncategorised/363/input.js:1:1]
|
||
1 │ x\u002a
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[core/uncategorised/364/input.js:1:1]
|
||
1 │ /
|
||
· ─
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[core/uncategorised/365/input.js:1:1]
|
||
1 │ /test
|
||
· ─────
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[core/uncategorised/366/input.js:1:1]
|
||
1 │ var x = /[a-z]/\ux
|
||
· ─
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/366/input.js:1:1]
|
||
1 │ var x = /[a-z]/\ux
|
||
· ▲
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/367/input.js:1:1]
|
||
1 │ 3 = 4
|
||
· ─
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/368/input.js:1:1]
|
||
1 │ func() = 4
|
||
· ──────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/369/input.js:1:1]
|
||
1 │ (1 + 1) = 10
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/370/input.js:1:1]
|
||
1 │ 1++
|
||
· ─
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/371/input.js:1:1]
|
||
1 │ 1--
|
||
· ─
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/372/input.js:1:1]
|
||
1 │ ++1
|
||
· ─
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/373/input.js:1:1]
|
||
1 │ --1
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/374/input.js:1:1]
|
||
1 │ for((1 + 1) in list) process(x);
|
||
· ───────
|
||
╰────
|
||
|
||
× Expected `]` but found `EOF`
|
||
╭─[core/uncategorised/375/input.js:1:1]
|
||
1 │ [
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/376/input.js:1:1]
|
||
1 │ [,
|
||
╰────
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/377/input.js:1:1]
|
||
1 │ 1 + {
|
||
╰────
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/378/input.js:1:1]
|
||
1 │ 1 + { t:t
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/379/input.js:1:1]
|
||
1 │ 1 + { t:t,
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[core/uncategorised/380/input.js:1:1]
|
||
1 │ var x = /
|
||
· ──
|
||
2 │ /
|
||
╰────
|
||
|
||
× Unterminated string
|
||
╭─[core/uncategorised/381/input.js:1:1]
|
||
1 │ var x = "
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/382/input.js:1:1]
|
||
1 │ var if = 42
|
||
· ──
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/383/input.js:1:1]
|
||
1 │ i + 2 = 42
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/384/input.js:1:1]
|
||
1 │ +i = 42
|
||
· ──
|
||
╰────
|
||
|
||
× Expected `)` but found `EOF`
|
||
╭─[core/uncategorised/385/input.js:1:1]
|
||
1 │ 1 + (
|
||
╰────
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/386/input.js:3:1]
|
||
3 │
|
||
4 │ {
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/387/input.js:3:1]
|
||
3 │ comment */
|
||
4 │ )
|
||
· ─
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/388/input.js:1:1]
|
||
1 │ { set 1 }
|
||
· ─
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/389/input.js:1:1]
|
||
1 │ { get 2 }
|
||
· ─
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/390/input.js:1:1]
|
||
1 │ ({ set: s(if) { } })
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/391/input.js:1:1]
|
||
1 │ ({ set s(.) { } })
|
||
· ─
|
||
╰────
|
||
|
||
× Expected `,` but found `{`
|
||
╭─[core/uncategorised/392/input.js:1:1]
|
||
1 │ ({ set: s() { } })
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `{`
|
||
╭─[core/uncategorised/393/input.js:1:1]
|
||
1 │ ({ set: s(a, b) { } })
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `{`
|
||
╭─[core/uncategorised/394/input.js:1:1]
|
||
1 │ ({ get: g(d) { } })
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/395/input.js:1:1]
|
||
1 │ function t(...) { }
|
||
· ─
|
||
╰────
|
||
|
||
× A rest element must be last in a destructuring pattern
|
||
╭─[core/uncategorised/396/input.js:1:1]
|
||
1 │ function t(...rest, b) { }
|
||
· ───────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/397/input.js:1:1]
|
||
1 │ function t(if) { }
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/398/input.js:1:1]
|
||
1 │ function t(true) { }
|
||
· ────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/399/input.js:1:1]
|
||
1 │ function t(false) { }
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/400/input.js:1:1]
|
||
1 │ function t(null) { }
|
||
· ────
|
||
╰────
|
||
|
||
× Expected `(` but found `null`
|
||
╭─[core/uncategorised/401/input.js:1:1]
|
||
1 │ function null() { }
|
||
· ──┬─
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Expected `(` but found `true`
|
||
╭─[core/uncategorised/402/input.js:1:1]
|
||
1 │ function true() { }
|
||
· ──┬─
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Expected `(` but found `false`
|
||
╭─[core/uncategorised/403/input.js:1:1]
|
||
1 │ function false() { }
|
||
· ──┬──
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Expected `(` but found `if`
|
||
╭─[core/uncategorised/404/input.js:1:1]
|
||
1 │ function if() { }
|
||
· ─┬
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/405/input.js:1:1]
|
||
1 │ a b;
|
||
· ─
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Expected `(` but found `.`
|
||
╭─[core/uncategorised/406/input.js:1:1]
|
||
1 │ if.a;
|
||
· ┬
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/407/input.js:1:1]
|
||
1 │ a if;
|
||
· ─
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/408/input.js:1:1]
|
||
1 │ a class;
|
||
· ─
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Illegal break statement
|
||
╭─[core/uncategorised/409/input.js:1:1]
|
||
1 │ break
|
||
· ─────
|
||
╰────
|
||
help: A `break` statement can only be used within an enclosing iteration or switch statement.
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/410/input.js:1:1]
|
||
1 │ break 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Illegal continue statement: no surrounding iteration statement
|
||
╭─[core/uncategorised/411/input.js:1:1]
|
||
1 │ continue
|
||
· ────────
|
||
╰────
|
||
help: A `continue` statement can only be used within an enclosing `for`, `while` or `do while`
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/412/input.js:1:1]
|
||
1 │ continue 2;
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/413/input.js:1:1]
|
||
1 │ throw
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/414/input.js:1:1]
|
||
1 │ throw;
|
||
· ─
|
||
╰────
|
||
|
||
× Only a single declaration is allowed in a `for...in` statement
|
||
╭─[core/uncategorised/415/input.js:1:1]
|
||
1 │ for (var i, i2 in {});
|
||
· ─────────
|
||
╰────
|
||
|
||
× Expected `;` but found `)`
|
||
╭─[core/uncategorised/416/input.js:1:1]
|
||
1 │ for ((i in {}));
|
||
· ┬
|
||
· ╰── `;` expected
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/417/input.js:1:1]
|
||
1 │ for (i + 1 in {});
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/418/input.js:1:1]
|
||
1 │ for (+i in {});
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/419/input.js:1:1]
|
||
1 │ if(false)
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/420/input.js:1:1]
|
||
1 │ if(false) doThis(); else
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/421/input.js:1:1]
|
||
1 │ do
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/422/input.js:1:1]
|
||
1 │ while(false)
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/423/input.js:1:1]
|
||
1 │ for(;;)
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/424/input.js:1:1]
|
||
1 │ with(x)
|
||
╰────
|
||
|
||
× Missing catch or finally clause
|
||
╭─[core/uncategorised/425/input.js:1:1]
|
||
1 │ try { }
|
||
╰────
|
||
|
||
× Invalid Character `‿`
|
||
╭─[core/uncategorised/426/input.js:1:1]
|
||
1 │ ‿ = 10
|
||
· ─
|
||
╰────
|
||
|
||
× Identifier `default` has already been declared
|
||
╭─[core/uncategorised/427/input.js:1:1]
|
||
1 │ switch (c) { default: default: }
|
||
· ────┬─── ────┬───
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `default` has already been declared here
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/428/input.js:1:1]
|
||
1 │ new X()."s"
|
||
· ───
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[core/uncategorised/429/input.js:1:1]
|
||
1 │ /*
|
||
· ──
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[core/uncategorised/430/input.js:1:1]
|
||
1 │ ╭─▶ /*
|
||
2 │ │
|
||
3 │ ╰─▶
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[core/uncategorised/431/input.js:1:1]
|
||
1 │ /**
|
||
· ───
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[core/uncategorised/432/input.js:1:1]
|
||
1 │ ╭─▶ /*
|
||
2 │ │
|
||
3 │ ╰─▶ *
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[core/uncategorised/433/input.js:1:1]
|
||
1 │ /*hello
|
||
· ───────
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[core/uncategorised/434/input.js:1:1]
|
||
1 │ /*hello *
|
||
· ──────────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/435/input.js:1:1]
|
||
1 │
|
||
2 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/436/input.js:1:1]
|
||
1 │
|
||
]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/437/input.js:1:1]
|
||
1 │
|
||
2 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/438/input.js:2:1]
|
||
2 │
|
||
]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/439/input.js:1:1]
|
||
1 │ //
|
||
2 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/440/input.js:2:1]
|
||
2 │
|
||
]
|
||
· ─
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[core/uncategorised/441/input.js:1:1]
|
||
1 │ /a\
|
||
· ────
|
||
2 │ /
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/442/input.js:2:1]
|
||
2 │
|
||
3 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/443/input.js:1:1]
|
||
1 │ /*
|
||
2 │ */]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/444/input.js:2:1]
|
||
2 │
|
||
*/]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/445/input.js:2:1]
|
||
2 │
|
||
3 │ */]
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[core/uncategorised/446/input.js:1:1]
|
||
1 │ \\
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Character `\`
|
||
╭─[core/uncategorised/447/input.js:1:1]
|
||
1 │ \u005c
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[core/uncategorised/448/input.js:1:1]
|
||
1 │ \x
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Character ` |