mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
11057 lines
355 KiB
Text
11057 lines
355 KiB
Text
commit: 12619ffe
|
||
|
||
parser_babel Summary:
|
||
AST Parsed : 2093/2101 (99.62%)
|
||
Positive Passed: 2083/2101 (99.14%)
|
||
Negative Passed: 1380/1501 (91.94%)
|
||
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/297/input.js"
|
||
Expect Syntax Error: "es2015/uncategorised/335/input.js"
|
||
Expect Syntax Error: "es2017/async-functions/async-await-as-arrow-binding-identifier/input.js"
|
||
Expect Syntax Error: "es2017/async-functions/await-binding-inside-arrow-params-inside-async-arrow-params/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: "es2020/dynamic-import-createImportExpression-false/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/invalid-syntax/migrated_0101/input.js"
|
||
Expect Syntax Error: "esprima/invalid-syntax/migrated_0276/input.js"
|
||
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/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/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/private-fields-modifier-abstract/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/equals-in-script/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/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/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-invalid-optional/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 to Parse: "core/opts/allowNewTargetOutsideFunction-true/input.js"
|
||
|
||
× Unexpected new.target expression
|
||
╭─[core/opts/allowNewTargetOutsideFunction-true/input.js:1:11]
|
||
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:2:17]
|
||
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:3: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:2:3]
|
||
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/class/declare/input.ts"
|
||
|
||
× Identifier `x` has already been declared
|
||
╭─[typescript/class/declare/input.ts:3:5]
|
||
2 │ [x: string]: any;
|
||
3 │ x;
|
||
· ┬
|
||
· ╰── `x` has already been declared here
|
||
4 │ x: number;
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
5 │ f();
|
||
╰────
|
||
Expect to Parse: "typescript/class/modifiers-override/input.ts"
|
||
|
||
× Identifier `show` has already been declared
|
||
╭─[typescript/class/modifiers-override/input.ts:2:12]
|
||
1 │ class MyClass extends BaseClass {
|
||
2 │ override show() {}
|
||
· ──┬─
|
||
· ╰── `show` has already been declared here
|
||
3 │ public override show() {}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
4 │ override size = 5;
|
||
╰────
|
||
|
||
× Identifier `size` has already been declared
|
||
╭─[typescript/class/modifiers-override/input.ts:4:12]
|
||
3 │ public override show() {}
|
||
4 │ override size = 5;
|
||
· ──┬─
|
||
· ╰── `size` has already been declared here
|
||
5 │ override readonly size = 5;
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
6 │
|
||
╰────
|
||
Expect to Parse: "typescript/class/parameter-properties/input.ts"
|
||
|
||
× A required parameter cannot follow an optional parameter.
|
||
╭─[typescript/class/parameter-properties/input.ts:7:9]
|
||
6 │ private pi?: number,
|
||
7 │ public readonly pur,
|
||
· ───────────────────
|
||
8 │ // Also works on AssignmentPattern
|
||
╰────
|
||
Expect to Parse: "typescript/class/properties/input.ts"
|
||
|
||
× Identifier `x` has already been declared
|
||
╭─[typescript/class/properties/input.ts:2:5]
|
||
1 │ class C {
|
||
2 │ x;
|
||
· ┬
|
||
· ╰── `x` has already been declared here
|
||
3 │ x?;
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
4 │ x: number;
|
||
╰────
|
||
|
||
× Identifier `x` has already been declared
|
||
╭─[typescript/class/properties/input.ts:3:5]
|
||
2 │ x;
|
||
3 │ x?;
|
||
· ┬
|
||
· ╰── `x` has already been declared here
|
||
4 │ x: number;
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
5 │ x: number = 1;
|
||
╰────
|
||
|
||
× Identifier `x` has already been declared
|
||
╭─[typescript/class/properties/input.ts:4:5]
|
||
3 │ x?;
|
||
4 │ x: number;
|
||
· ┬
|
||
· ╰── `x` has already been declared here
|
||
5 │ x: number = 1;
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
6 │ x!;
|
||
╰────
|
||
|
||
× Identifier `x` has already been declared
|
||
╭─[typescript/class/properties/input.ts:5:5]
|
||
4 │ x: number;
|
||
5 │ x: number = 1;
|
||
· ┬
|
||
· ╰── `x` has already been declared here
|
||
6 │ x!;
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
7 │ x!: number;
|
||
╰────
|
||
|
||
× Identifier `x` has already been declared
|
||
╭─[typescript/class/properties/input.ts:6:5]
|
||
5 │ x: number = 1;
|
||
6 │ x!;
|
||
· ┬
|
||
· ╰── `x` has already been declared here
|
||
7 │ x!: number;
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
8 │ }
|
||
╰────
|
||
Expect to Parse: "typescript/declare/eval/input.ts"
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[typescript/declare/eval/input.ts:3:25]
|
||
2 │ export namespace ns {
|
||
3 │ export function eval(): void;
|
||
· ────
|
||
4 │ export function arguments(): void;
|
||
╰────
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[typescript/declare/eval/input.ts:4:25]
|
||
3 │ export function eval(): void;
|
||
4 │ export function arguments(): void;
|
||
· ─────────
|
||
5 │ }
|
||
╰────
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[typescript/declare/eval/input.ts:8:18]
|
||
7 │
|
||
8 │ declare function eval(): void;
|
||
· ────
|
||
9 │ declare function arguments(): void;
|
||
╰────
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[typescript/declare/eval/input.ts:9:18]
|
||
8 │ declare function eval(): void;
|
||
9 │ declare function arguments(): void;
|
||
· ─────────
|
||
10 │
|
||
╰────
|
||
Expect to Parse: "typescript/function/declare-pattern-parameters/input.ts"
|
||
|
||
× A required parameter cannot follow an optional parameter.
|
||
╭─[typescript/function/declare-pattern-parameters/input.ts:1:25]
|
||
1 │ declare function f([]?, {})
|
||
· ──
|
||
╰────
|
||
Expect to Parse: "typescript/interface/get-set-properties/input.ts"
|
||
|
||
× Expected `(` but found `:`
|
||
╭─[typescript/interface/get-set-properties/input.ts:2:10]
|
||
1 │ interface Foo {
|
||
2 │ get foo: string;
|
||
· ┬
|
||
· ╰── `(` expected
|
||
3 │ set bar: string;
|
||
╰────
|
||
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:31]
|
||
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:31]
|
||
1 │ type Equals = A extends (x: B extends C ? D : E) => 0 ? F : G;
|
||
· ───┬───
|
||
· ╰── `,` expected
|
||
╰────
|
||
Expect to Parse: "typescript/type-arguments-bit-shift-left-like/class-heritage/input.ts"
|
||
|
||
× Expected `{` but found `<<`
|
||
╭─[typescript/type-arguments-bit-shift-left-like/class-heritage/input.ts:1:17]
|
||
1 │ (class extends f<<T>(v: T) => void> {});
|
||
· ─┬
|
||
· ╰── `{` expected
|
||
╰────
|
||
Expect to Parse: "typescript/type-arguments-bit-shift-left-like/jsx-opening-element/input.tsx"
|
||
|
||
× Unexpected token
|
||
╭─[typescript/type-arguments-bit-shift-left-like/jsx-opening-element/input.tsx:1:11]
|
||
1 │ <Component<<T>(v: T) => void> />
|
||
· ──
|
||
╰────
|
||
Expect to Parse: "typescript/type-arguments-bit-shift-left-like-babel-7/class-heritage/input.ts"
|
||
|
||
× Expected `{` but found `<<`
|
||
╭─[typescript/type-arguments-bit-shift-left-like-babel-7/class-heritage/input.ts:1:17]
|
||
1 │ (class extends f<<T>(v: T) => void> {});
|
||
· ─┬
|
||
· ╰── `{` expected
|
||
╰────
|
||
Expect to Parse: "typescript/type-arguments-bit-shift-left-like-babel-7/jsx-opening-element/input.tsx"
|
||
|
||
× Unexpected token
|
||
╭─[typescript/type-arguments-bit-shift-left-like-babel-7/jsx-opening-element/input.tsx:1:11]
|
||
1 │ <Component<<T>(v: T) => void> />
|
||
· ──
|
||
╰────
|
||
Expect to Parse: "typescript/types/const-type-parameters/input.ts"
|
||
|
||
× Identifier `method` has already been declared
|
||
╭─[typescript/types/const-type-parameters/input.ts:29:3]
|
||
28 │ class _ {
|
||
29 │ method<const T>() {}
|
||
· ───┬──
|
||
· ╰── `method` has already been declared here
|
||
30 │ method<const T extends U>() {}
|
||
· ───┬──
|
||
· ╰── It can not be redeclared here
|
||
31 │ method<T, const U>() {}
|
||
╰────
|
||
|
||
× Identifier `method` has already been declared
|
||
╭─[typescript/types/const-type-parameters/input.ts:30:3]
|
||
29 │ method<const T>() {}
|
||
30 │ method<const T extends U>() {}
|
||
· ───┬──
|
||
· ╰── `method` has already been declared here
|
||
31 │ method<T, const U>() {}
|
||
· ───┬──
|
||
· ╰── It can not be redeclared here
|
||
32 │ }
|
||
╰────
|
||
Expect to Parse: "typescript/types/const-type-parameters-babel-7/input.ts"
|
||
|
||
× Identifier `method` has already been declared
|
||
╭─[typescript/types/const-type-parameters-babel-7/input.ts:29:3]
|
||
28 │ class _ {
|
||
29 │ method<const T>() {}
|
||
· ───┬──
|
||
· ╰── `method` has already been declared here
|
||
30 │ method<const T extends U>() {}
|
||
· ───┬──
|
||
· ╰── It can not be redeclared here
|
||
31 │ method<T, const U>() {}
|
||
╰────
|
||
|
||
× Identifier `method` has already been declared
|
||
╭─[typescript/types/const-type-parameters-babel-7/input.ts:30:3]
|
||
29 │ method<const T>() {}
|
||
30 │ method<const T extends U>() {}
|
||
· ───┬──
|
||
· ╰── `method` has already been declared here
|
||
31 │ method<T, const U>() {}
|
||
· ───┬──
|
||
· ╰── It can not be redeclared here
|
||
32 │ }
|
||
╰────
|
||
|
||
× Identifier `f` has already been declared
|
||
╭─[annex-b/disabled/3.4-var-redeclaration-catch-binding/input.js:2:17]
|
||
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:2:17]
|
||
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:3:3]
|
||
2 │ var a = 1
|
||
3 │ a < 3
|
||
· ┬
|
||
· ╰── `;` expected
|
||
4 │ a++
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-1/input.js:1:2]
|
||
1 │ (a = 1) = t
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-2/input.js:1:3]
|
||
1 │ [(a = 1)] = t
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-3/input.js:1:2]
|
||
1 │ [({ a: [b = 2]})] = t
|
||
· ───────────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-4/input.js:1:7]
|
||
1 │ [{b: [([a = 1])]}] = t
|
||
· ─────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-5/input.js:1:2]
|
||
1 │ [([x])] = t;
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-6/input.js:1:2]
|
||
1 │ (a += 1) = t
|
||
· ──────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-7/input.js:1:2]
|
||
1 │ (a -= 1) = t
|
||
· ──────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/categorized/invalid-assignment-pattern-8/input.js:1:2]
|
||
1 │ (b = (a -= 1)) = t
|
||
· ────────────
|
||
╰────
|
||
|
||
× Invalid function declaration
|
||
╭─[core/categorized/invalid-fn-decl-inside-loop/input.js:1:11]
|
||
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:2:3]
|
||
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:7]
|
||
1 │ [{b: [([a = 1])]}] = t
|
||
· ─────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-3/input.js:1:2]
|
||
1 │ [({ a: [b = 2]})] = t
|
||
· ───────────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-4/input.js:1:3]
|
||
1 │ [(a = 1)] = t
|
||
· ─────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/create-parenthesized-expressions/invalid-parenthesized-assignment-pattern-5/input.js:1:2]
|
||
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:2]
|
||
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:11]
|
||
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:2]
|
||
1 │ [([x])] = t;
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/escape-keyword/invalid/input.js:3: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:3: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:4: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:8: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:9: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:11: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:2:3]
|
||
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:7:3]
|
||
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:8:3]
|
||
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:14:3]
|
||
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:19:3]
|
||
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:20:3]
|
||
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:53]
|
||
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:37]
|
||
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:2]
|
||
1 │ `\8`;
|
||
· ──
|
||
╰────
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[core/escape-template/non-octal-nine/input.js:1:2]
|
||
1 │ `\9`;
|
||
· ──
|
||
╰────
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[core/legacy-octal/legacy-octal-after-use-strict/input.js:1:15]
|
||
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:19]
|
||
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:3:3]
|
||
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:8:3]
|
||
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:9:3]
|
||
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:4]
|
||
1 │ ({ ge\u0074 x() {} })
|
||
· ────────
|
||
╰────
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[core/object/invalid-getter-param/input.js:1:12]
|
||
1 │ ({ get prop(x) {} })
|
||
· ───
|
||
╰────
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[core/object/invalid-setter-no-param/input.js:1:9]
|
||
1 │ ({ set x(){} })
|
||
· ──
|
||
╰────
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[core/object/invalid-setter-two-params/input.js:1:12]
|
||
1 │ ({ set prop(x, y) {} })
|
||
· ──────
|
||
╰────
|
||
|
||
× Expected `(` but found `await`
|
||
╭─[core/opts/allowAwaitOutsideFunction-false/input.js:1:5]
|
||
1 │ for await (const i of imports) {}
|
||
· ──┬──
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Unexpected new.target expression
|
||
╭─[core/opts/allowNewTargetOutsideFunction-false/input.js:1:11]
|
||
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:17]
|
||
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:3]
|
||
1 │ a.[b]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/regression/T2921/input.js:1:5]
|
||
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:3]
|
||
1 │ 07.5
|
||
· ▲
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Identifier `foo` has already been declared
|
||
╭─[core/scope/dupl-bind-2nd-lvl-lex/input.js:2:5]
|
||
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:3:7]
|
||
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:2:5]
|
||
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:3:7]
|
||
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:2:11]
|
||
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:5]
|
||
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:2:10]
|
||
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:2:15]
|
||
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:2:11]
|
||
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:2:12]
|
||
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:7]
|
||
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:7]
|
||
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:7]
|
||
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:7]
|
||
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:7]
|
||
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:7]
|
||
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:12]
|
||
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:10]
|
||
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:12]
|
||
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:13]
|
||
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:5]
|
||
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:2:7]
|
||
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:10]
|
||
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:10]
|
||
1 │ export { encrypt };
|
||
· ───────
|
||
╰────
|
||
|
||
× Export 'encrypt' is not defined
|
||
╭─[core/scope/undecl-export-as/input.js:1:10]
|
||
1 │ export { encrypt as decrypt };
|
||
· ───────
|
||
2 │ function decrypt() {}
|
||
╰────
|
||
|
||
× Export 'encrypt' is not defined
|
||
╭─[core/scope/undecl-export-as-default/input.js:1:10]
|
||
1 │ export { encrypt as default };
|
||
· ───────
|
||
╰────
|
||
|
||
× Export 'encrypt' is not defined
|
||
╭─[core/scope/undecl-export-block/input.js:4:10]
|
||
3 │ }
|
||
4 │ export { encrypt }
|
||
· ───────
|
||
╰────
|
||
|
||
× Export 'Object' is not defined
|
||
╭─[core/scope/undecl-export-builtin/input.js:1:10]
|
||
1 │ export { Object };
|
||
· ──────
|
||
╰────
|
||
|
||
× Export 'Object' is not defined
|
||
╭─[core/scope/undecl-export-builtin-as/input.js:1:10]
|
||
1 │ export { Object as Obj };
|
||
· ──────
|
||
╰────
|
||
|
||
× Invalid function declaration
|
||
╭─[core/scope/undecl-export-if/input.js:2:11]
|
||
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
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/108/input.js:1:17]
|
||
1 │ var x = /[P QR]/\u0067
|
||
· ▲
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/345/input.js:1:2]
|
||
1 │ {
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/346/input.js:1:1]
|
||
1 │ }
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Character `a`
|
||
╭─[core/uncategorised/347/input.js:1:3]
|
||
1 │ 3ea
|
||
· ▲
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/347/input.js:1:3]
|
||
1 │ 3ea
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/348/input.js:1:2]
|
||
1 │ 3in []
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected end of file
|
||
╭─[core/uncategorised/349/input.js:1:3]
|
||
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:4]
|
||
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:4]
|
||
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:2]
|
||
1 │ 3x
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/353/input.js:1:2]
|
||
1 │ 3x0
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected end of file
|
||
╭─[core/uncategorised/354/input.js:1:3]
|
||
1 │ 0x
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/357/input.js:1:3]
|
||
1 │ 01a
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/358/input.js:1:2]
|
||
1 │ 3in[]
|
||
· ──
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[core/uncategorised/359/input.js:1:4]
|
||
1 │ 0x3in[]
|
||
· ──
|
||
╰────
|
||
|
||
× Unterminated string
|
||
╭─[core/uncategorised/360/input.js:1:1]
|
||
1 │ "Hello
|
||
· ───────
|
||
2 │ World"
|
||
╰────
|
||
|
||
× Invalid Character `\`
|
||
╭─[core/uncategorised/362/input.js:1:8]
|
||
1 │ x\u005c
|
||
╰────
|
||
|
||
× Invalid Character `*`
|
||
╭─[core/uncategorised/363/input.js:1:8]
|
||
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:17]
|
||
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:16]
|
||
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:2]
|
||
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:3]
|
||
1 │ ++1
|
||
· ─
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[core/uncategorised/373/input.js:1:3]
|
||
1 │ --1
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/374/input.js:1:5]
|
||
1 │ for((1 + 1) in list) process(x);
|
||
· ───────
|
||
╰────
|
||
|
||
× Expected `]` but found `EOF`
|
||
╭─[core/uncategorised/375/input.js:1:2]
|
||
1 │ [
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/376/input.js:1:3]
|
||
1 │ [,
|
||
╰────
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/377/input.js:1:6]
|
||
1 │ 1 + {
|
||
╰────
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/378/input.js:2:1]
|
||
1 │ 1 + { t:t
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/379/input.js:1:11]
|
||
1 │ 1 + { t:t,
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[core/uncategorised/380/input.js:1:9]
|
||
1 │ var x = /
|
||
· ──
|
||
2 │ /
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/380/input.js:2:2]
|
||
1 │ var x = /
|
||
2 │ /
|
||
╰────
|
||
|
||
× Unterminated string
|
||
╭─[core/uncategorised/381/input.js:1:9]
|
||
1 │ var x = "
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/382/input.js:1:5]
|
||
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:6]
|
||
1 │ 1 + (
|
||
╰────
|
||
|
||
× Expected `}` but found `EOF`
|
||
╭─[core/uncategorised/386/input.js:4:2]
|
||
3 │
|
||
4 │ {
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/387/input.js:4:1]
|
||
3 │ comment */
|
||
4 │ )
|
||
· ─
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/388/input.js:1:6]
|
||
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:6]
|
||
1 │ { get 2 }
|
||
· ▲
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/390/input.js:1:11]
|
||
1 │ ({ set: s(if) { } })
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/391/input.js:1:10]
|
||
1 │ ({ set s(.) { } })
|
||
· ─
|
||
╰────
|
||
|
||
× Expected `,` but found `{`
|
||
╭─[core/uncategorised/392/input.js:1:13]
|
||
1 │ ({ set: s() { } })
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `{`
|
||
╭─[core/uncategorised/393/input.js:1:17]
|
||
1 │ ({ set: s(a, b) { } })
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `{`
|
||
╭─[core/uncategorised/394/input.js:1:14]
|
||
1 │ ({ get: g(d) { } })
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/395/input.js:1:15]
|
||
1 │ function t(...) { }
|
||
· ─
|
||
╰────
|
||
|
||
× A rest parameter must be last in a parameter list
|
||
╭─[core/uncategorised/396/input.js:1:12]
|
||
1 │ function t(...rest, b) { }
|
||
· ───────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/397/input.js:1:12]
|
||
1 │ function t(if) { }
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/398/input.js:1:12]
|
||
1 │ function t(true) { }
|
||
· ────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/399/input.js:1:12]
|
||
1 │ function t(false) { }
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/400/input.js:1:12]
|
||
1 │ function t(null) { }
|
||
· ────
|
||
╰────
|
||
|
||
× Expected `Identifier` but found `null`
|
||
╭─[core/uncategorised/401/input.js:1:10]
|
||
1 │ function null() { }
|
||
· ──┬─
|
||
· ╰── `Identifier` expected
|
||
╰────
|
||
|
||
× Expected `Identifier` but found `true`
|
||
╭─[core/uncategorised/402/input.js:1:10]
|
||
1 │ function true() { }
|
||
· ──┬─
|
||
· ╰── `Identifier` expected
|
||
╰────
|
||
|
||
× Expected `Identifier` but found `false`
|
||
╭─[core/uncategorised/403/input.js:1:10]
|
||
1 │ function false() { }
|
||
· ──┬──
|
||
· ╰── `Identifier` expected
|
||
╰────
|
||
|
||
× Expected `Identifier` but found `if`
|
||
╭─[core/uncategorised/404/input.js:1:10]
|
||
1 │ function if() { }
|
||
· ─┬
|
||
· ╰── `Identifier` expected
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/405/input.js:1:2]
|
||
1 │ a b;
|
||
· ▲
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Expected `(` but found `.`
|
||
╭─[core/uncategorised/406/input.js:1:3]
|
||
1 │ if.a;
|
||
· ┬
|
||
· ╰── `(` expected
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[core/uncategorised/407/input.js:1:2]
|
||
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:2]
|
||
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:7]
|
||
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:10]
|
||
1 │ continue 2;
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/413/input.js:1:6]
|
||
1 │ throw
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/414/input.js:1:6]
|
||
1 │ throw;
|
||
· ─
|
||
╰────
|
||
|
||
× Only a single declaration is allowed in a `for...in` statement
|
||
╭─[core/uncategorised/415/input.js:1:6]
|
||
1 │ for (var i, i2 in {});
|
||
· ─────────
|
||
╰────
|
||
|
||
× Expected `;` but found `)`
|
||
╭─[core/uncategorised/416/input.js:1:15]
|
||
1 │ for ((i in {}));
|
||
· ┬
|
||
· ╰── `;` expected
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/417/input.js:1:6]
|
||
1 │ for (i + 1 in {});
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/418/input.js:1:6]
|
||
1 │ for (+i in {});
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/419/input.js:1:10]
|
||
1 │ if(false)
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/420/input.js:1:25]
|
||
1 │ if(false) doThis(); else
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/421/input.js:1:3]
|
||
1 │ do
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/422/input.js:1:13]
|
||
1 │ while(false)
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/423/input.js:1:8]
|
||
1 │ for(;;)
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/424/input.js:1:8]
|
||
1 │ with(x)
|
||
╰────
|
||
|
||
× Missing catch or finally clause
|
||
╭─[core/uncategorised/425/input.js:1:8]
|
||
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:14]
|
||
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:9]
|
||
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:2:1]
|
||
1 │
|
||
2 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/436/input.js:2:1]
|
||
1 │
|
||
]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/437/input.js:2:1]
|
||
1 │
|
||
2 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/438/input.js:3:1]
|
||
2 │
|
||
]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/439/input.js:2:1]
|
||
1 │ //
|
||
2 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/440/input.js:3:1]
|
||
2 │
|
||
]
|
||
· ─
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[core/uncategorised/441/input.js:1:1]
|
||
1 │ /a\
|
||
· ────
|
||
2 │ /
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/441/input.js:2:2]
|
||
1 │ /a\
|
||
2 │ /
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/442/input.js:3:1]
|
||
2 │
|
||
3 │ ]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/443/input.js:2:3]
|
||
1 │ /*
|
||
2 │ */]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/444/input.js:3:3]
|
||
2 │
|
||
*/]
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[core/uncategorised/445/input.js:3:3]
|
||
2 │
|
||
3 │ */]
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[core/uncategorised/446/input.js:1:2]
|
||
1 │ \\
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Character `\`
|
||
╭─[core/uncategorised/447/input.js:1:7]
|
||
1 │ \u005c
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[core/uncategorised/448/input.js:1:2]
|
||
1 │ \x
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid Character ` |