mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
17492 lines
586 KiB
Text
17492 lines
586 KiB
Text
Test262 Summary:
|
||
AST Parsed : 43960/43960 (100.00%)
|
||
|
||
× Unexpected token
|
||
╭─[annexB/language/statements/for-in/bare-initializer.js:14:1]
|
||
14 │
|
||
15 │ for (a = 0 in {});
|
||
· ─────
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/asi/S7.9.2_A1_T1.js:15:1]
|
||
15 │ //CHECK#1
|
||
16 │ { 1 2 } 3
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9.2_A1_T3.js:16:1]
|
||
16 │ for( a ; b
|
||
17 │ )
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9.2_A1_T6.js:19:1]
|
||
19 │ if(a>b)
|
||
20 │ else c=d
|
||
· ────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A10_T2.js:15:1]
|
||
15 │ //CHECK#1
|
||
16 │ {} * 1
|
||
· ─
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A10_T4.js:15:1]
|
||
15 │ //CHECK#1
|
||
16 │ ({};) * 1
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `;`
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A10_T6.js:16:1]
|
||
16 │ {}
|
||
17 │ * 1
|
||
· ─
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/asi/S7.9_A10_T8.js:15:1]
|
||
15 │ //CHECK#1
|
||
16 │ {1 2} 3
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/asi/S7.9_A11_T4.js:16:1]
|
||
16 │ var x = 0;
|
||
17 │ if (false) x = 1 else x = -1
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A11_T8.js:15:1]
|
||
15 │ if (false) {};
|
||
16 │ else {}
|
||
· ────
|
||
╰────
|
||
|
||
× Illegal newline after "throw"
|
||
╭─[language/asi/S7.9_A4.js:16:1]
|
||
16 │ try {
|
||
17 │ throw
|
||
· ──┬──
|
||
· ╰── throw starts here
|
||
18 │ 1;
|
||
· ┬
|
||
· ╰── A newline is not expected here
|
||
19 │ } catch(e) {
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A5.1_T1.js:16:1]
|
||
16 │ x
|
||
17 │ ++;
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A5.3_T1.js:17:1]
|
||
17 │ x
|
||
18 │ --;
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/asi/S7.9_A5.7_T1.js:22:1]
|
||
22 │ x
|
||
23 │ ╭─▶ ++
|
||
24 │ │ ++
|
||
25 │ ├─▶ y
|
||
· ╰──── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T1.js:19:1]
|
||
19 │ for(;
|
||
20 │ ) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
21 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T10.js:20:1]
|
||
20 │ false
|
||
21 │ ;) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T2.js:20:1]
|
||
20 │ ;
|
||
21 │ ) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T3.js:19:1]
|
||
19 │ for(
|
||
20 │ ;) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
21 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T4.js:20:1]
|
||
20 │
|
||
21 │ ;) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T5.js:19:1]
|
||
19 │ for(false;false
|
||
20 │ ) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
21 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T6.js:20:1]
|
||
20 │ false
|
||
21 │ ) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T7.js:20:1]
|
||
20 │ ;
|
||
21 │ ) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T8.js:20:1]
|
||
20 │ ;false
|
||
21 │ ) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.2_T9.js:19:1]
|
||
19 │ for(
|
||
20 │ ;false) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
21 │ break;
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A6.3_T1.js:19:1]
|
||
19 │ for(
|
||
20 │ ) {
|
||
· ─
|
||
21 │ break;
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A6.3_T2.js:20:1]
|
||
20 │
|
||
21 │ ) {
|
||
· ─
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A6.3_T3.js:21:1]
|
||
21 │
|
||
22 │ ) {
|
||
· ─
|
||
23 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.3_T4.js:20:1]
|
||
20 │ false
|
||
21 │ ) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `)`
|
||
22 │ break;
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.3_T5.js:19:1]
|
||
19 │ for(false
|
||
20 │ false
|
||
· ──┬──
|
||
· ╰── Expect `;` here, but found `false`
|
||
21 │ ) {
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.3_T6.js:20:1]
|
||
20 │ false
|
||
21 │ false
|
||
· ──┬──
|
||
· ╰── Expect `;` here, but found `false`
|
||
22 │ ) {
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.3_T7.js:20:1]
|
||
20 │ false
|
||
21 │ false
|
||
· ──┬──
|
||
· ╰── Expect `;` here, but found `false`
|
||
22 │ false
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A6.4_T1.js:17:1]
|
||
17 │ //CHECK#1
|
||
18 │ for(false;false;false;) {
|
||
· ┬
|
||
· ╰── Expect `)` here, but found `;`
|
||
19 │ break;
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A6.4_T2.js:17:1]
|
||
17 │ //CHECK#1
|
||
18 │ for(false;false;;false) {
|
||
· ─
|
||
19 │ break;
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A9_T6.js:16:1]
|
||
16 │ do
|
||
17 │ while (false)
|
||
· ▲
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/asi/S7.9_A9_T7.js:17:1]
|
||
17 │
|
||
18 │ while (false)
|
||
· ▲
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/asi/S7.9_A9_T8.js:15:1]
|
||
15 │ //CHECK#1
|
||
16 │ do {};
|
||
· ┬
|
||
· ╰── Expect `while` here, but found `;`
|
||
17 │ while (false)
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[language/comments/S7.4_A2_T2.js:14:1]
|
||
14 │
|
||
15 │ /*CHECK#1/
|
||
· ─────┬─────
|
||
· ╰── Unterminated multiline comment
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/comments/S7.4_A3.js:20:1]
|
||
20 │ /* x */
|
||
21 │ = 1;
|
||
· ─
|
||
22 │ */
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[language/comments/S7.4_A4_T1.js:17:1]
|
||
17 │ /* var*/
|
||
18 │ x*/
|
||
· ─┬
|
||
· ╰── Unterminated regular expression
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[language/comments/S7.4_A4_T4.js:17:1]
|
||
17 │ // var /*
|
||
18 │ x*/
|
||
· ─┬
|
||
· ╰── Unterminated regular expression
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[language/comments/hashbang/escaped-bang-041.js:1:1]
|
||
1 │ #\041
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
2 │
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/comments/hashbang/escaped-bang-041.js:19:1]
|
||
19 │
|
||
20 │ throw "Test262: This statement should not be evaluated.";
|
||
· ──┬──
|
||
· ╰── Expect `in` here, but found `throw`
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/escaped-bang-u0021.js:1:1]
|
||
1 │ #\u0021
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
2 │
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/comments/hashbang/escaped-bang-u0021.js:19:1]
|
||
19 │
|
||
20 │ throw "Test262: This statement should not be evaluated.";
|
||
· ──┬──
|
||
· ╰── Expect `in` here, but found `throw`
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/escaped-bang-u21.js:1:1]
|
||
1 │ #\u{21}
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
2 │
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/comments/hashbang/escaped-bang-u21.js:19:1]
|
||
19 │
|
||
20 │ throw "Test262: This statement should not be evaluated.";
|
||
· ──┬──
|
||
· ╰── Expect `in` here, but found `throw`
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[language/comments/hashbang/escaped-bang-x21.js:1:1]
|
||
1 │ #\x21
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
2 │
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/comments/hashbang/escaped-bang-x21.js:19:1]
|
||
19 │
|
||
20 │ throw "Test262: This statement should not be evaluated.";
|
||
· ──┬──
|
||
· ╰── Expect `in` here, but found `throw`
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[language/comments/hashbang/escaped-hash-043.js:1:1]
|
||
1 │ \043!
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
2 │
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/comments/hashbang/escaped-hash-043.js:1:1]
|
||
1 │ \043!
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid Character `'#'`
|
||
╭─[language/comments/hashbang/escaped-hash-u0023.js:1:1]
|
||
1 │ \u0023!
|
||
· ▲
|
||
· ╰── Invalid Character `#`
|
||
2 │
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/comments/hashbang/escaped-hash-u0023.js:1:1]
|
||
1 │ \u0023!
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid Character `'#'`
|
||
╭─[language/comments/hashbang/escaped-hash-u23.js:1:1]
|
||
1 │ \u{23}!
|
||
· ▲
|
||
· ╰── Invalid Character `#`
|
||
2 │
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/comments/hashbang/escaped-hash-u23.js:1:1]
|
||
1 │ \u{23}!
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[language/comments/hashbang/escaped-hash-x23.js:1:1]
|
||
1 │ \x23!
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
2 │
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/comments/hashbang/escaped-hash-x23.js:1:1]
|
||
1 │ \x23!
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid Character `'#'`
|
||
╭─[language/comments/hashbang/escaped-hashbang.js:1:1]
|
||
1 │ \u0023\u0021
|
||
· ▲
|
||
· ╰── Invalid Character `#`
|
||
2 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/escaped-hashbang.js:1:1]
|
||
1 │ \u0023\u0021
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
2 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/function-body.js:18:1]
|
||
18 │
|
||
19 │ function fn() {#!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
20 │ }
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/comments/hashbang/multi-line-comment.js:2:1]
|
||
2 │ throw "Test262: This statement should not be evaluated.";
|
||
3 │ these characters should not be considered within a comment
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
4 │ */
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/preceding-directive-prologue-sc.js:1:1]
|
||
1 │ "use strict";
|
||
2 │ #!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
3 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/preceding-directive-prologue.js:1:1]
|
||
1 │ "use strict"
|
||
2 │ #!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
3 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/preceding-empty-statement.js:1:1]
|
||
1 │ ;#!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
2 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/preceding-hashbang.js:1:1]
|
||
1 │ #!
|
||
2 │ #!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
3 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/preceding-line-comment.js:1:1]
|
||
1 │ //
|
||
2 │ #!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
3 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/preceding-multi-line-comment.js:1:1]
|
||
1 │ /*
|
||
2 │ */#!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
3 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/preceding-whitespace.js:1:1]
|
||
1 │ #!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
2 │
|
||
╰────
|
||
|
||
× Invalid Character `'!'`
|
||
╭─[language/comments/hashbang/statement-block.js:19:1]
|
||
19 │ {
|
||
20 │ #!
|
||
· ▲
|
||
· ╰── Invalid Character `!`
|
||
21 │ }
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/comments/multi-line-html-close-extra.js:24:1]
|
||
24 │ /*
|
||
25 │ */ the comment should not include these characters, regardless of AnnexB extensions -->
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Unexpected token
|
||
╭─[language/comments/single-line-html-close-without-lt.js:22:1]
|
||
22 │
|
||
23 │ ;-->
|
||
· ─
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/export/escaped-as-export-specifier.js:24:1]
|
||
24 │ export var a = 0;
|
||
25 │ export {a \u0061s b} from "./escaped-as-export-specifier.js";
|
||
· ───┬───
|
||
· ╰── keyword cannot contain escape characters
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/export/escaped-default.js:23:1]
|
||
23 │
|
||
24 │ export d\u0065fault 0;
|
||
· ──────┬─────
|
||
· ╰── keyword cannot contain escape characters
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/export/escaped-from.js:23:1]
|
||
23 │
|
||
24 │ export {} \u0066rom "./escaped-from.js";
|
||
· ────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/arrow-function/dstr/ary-ptrn-rest-not-final-ary.js:51:1]
|
||
51 │ var f;
|
||
52 │ f = ([...[x], y]) => {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
53 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/arrow-function/dstr/ary-ptrn-rest-not-final-id.js:51:1]
|
||
51 │ var f;
|
||
52 │ f = ([...x, y]) => {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
53 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/arrow-function/dstr/ary-ptrn-rest-not-final-obj.js:51:1]
|
||
51 │ var f;
|
||
52 │ f = ([...{ x }, y]) => {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
53 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/arrow-function/dstr/dflt-ary-ptrn-rest-not-final-ary.js:51:1]
|
||
51 │ var f;
|
||
52 │ f = ([...[x], y] = [1, 2, 3]) => {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
53 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/arrow-function/dstr/dflt-ary-ptrn-rest-not-final-id.js:51:1]
|
||
51 │ var f;
|
||
52 │ f = ([...x, y] = [1, 2, 3]) => {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
53 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/arrow-function/dstr/dflt-ary-ptrn-rest-not-final-obj.js:51:1]
|
||
51 │ var f;
|
||
52 │ f = ([...{ x }, y] = [1, 2, 3]) => {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
53 │
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-break-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ bre\u0061k }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-case-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ c\u0061se }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-catch-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ c\u0061tch }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-class-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ cl\u0061ss }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-const-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0063onst }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-continue-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0063ontinue }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-debugger-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0064ebugger }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-default-escaped-ext.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ def\u{61}ult }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-default-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ def\u0061ult }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-default.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ default }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-delete-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0064elete }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-do-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0064o }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-else-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0065lse }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-enum-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0065num }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-export-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0065xport }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-extends-escaped-ext.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u{65}xtends }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-extends-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0065xtends }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-extends.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ extends }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-finally-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0066inally }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-for-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0066or }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-function-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0066unction }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-if-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ i\u0066 }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-import-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0069mport }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-in-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0069n }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-instanceof-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ \u0069nstanceof }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-new-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ n\u0065w }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-return-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ r\u0065turn }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-super-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ sup\u0065r }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-switch-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ sw\u0069tch }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-this-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ th\u0069s }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-throw-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ t\u0068row }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-try-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ tr\u0079 }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-typeof-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ typ\u0065of }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-var-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ v\u0061r }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-void-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ voi\u0064 }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-while-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ whil\u0065 }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/dstr/syntax-error-ident-ref-with-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = ({ w\u0069th }) => {};
|
||
· ─
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/arrow-function/rest-params-trailing-comma-early-error.js:53:1]
|
||
53 │
|
||
54 │ 0, (...a,) => {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
55 │
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/static-init-await-reference.js:15:1]
|
||
15 │ static {
|
||
16 │ ((x = await) => 0);
|
||
· ─
|
||
17 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/syntax/early-errors/arrowparameters-bindingidentifier-identifier-futurereservedword.js:23:1]
|
||
23 │ $DONOTEVALUATE();
|
||
24 │ var af = enum => 1;
|
||
· ────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/syntax/early-errors/arrowparameters-bindingidentifier-identifier.js:23:1]
|
||
23 │ $DONOTEVALUATE();
|
||
24 │ var af = switch => 1;
|
||
· ──────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/syntax/early-errors/arrowparameters-bindingidentifier-rest.js:15:1]
|
||
15 │ $DONOTEVALUATE();
|
||
16 │ var af = ...x => x;
|
||
· ───
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/syntax/early-errors/asi-restriction-invalid-parenless-parameters-expression-body.js:15:1]
|
||
15 │ var af = x
|
||
16 │ => x;
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/arrow-function/syntax/early-errors/asi-restriction-invalid-parenless-parameters.js:17:1]
|
||
17 │ var af = x
|
||
18 │ => {};
|
||
· ──
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[language/expressions/arrow-function/syntax/early-errors/asi-restriction-invalid.js:14:1]
|
||
14 │ var af = ()
|
||
15 │ => {};
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/array-elem-nested-array-invalid.js:22:1]
|
||
22 │
|
||
23 │ 0, [[(x, y)]] = [[]];
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/array-elem-nested-memberexpr-optchain-prop-ref-init.js:55:1]
|
||
55 │
|
||
56 │ 0, [x?.y = 42] = [23];
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/array-elem-nested-obj-invalid.js:22:1]
|
||
22 │
|
||
23 │ 0, [{ get x() {} }] = [{}];
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/array-elem-put-obj-literal-optchain-prop-ref-init.js:54:1]
|
||
54 │
|
||
55 │ ╭─▶ 0, [{
|
||
56 │ │ set y(val) {
|
||
57 │ │ throw new Test262Error('The property should not be accessed.');
|
||
58 │ │ }
|
||
59 │ ├─▶ }?.y = 42] = [23];
|
||
· ╰──── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Spread must be last element
|
||
╭─[language/expressions/assignment/dstr/array-rest-before-element.js:22:1]
|
||
22 │
|
||
23 │ 0, [...x, y] = [];
|
||
· ──┬─
|
||
· ╰── Spread must be last element
|
||
╰────
|
||
|
||
× Unexpected trailing comma after rest element
|
||
╭─[language/expressions/assignment/dstr/array-rest-before-elision.js:22:1]
|
||
22 │
|
||
23 │ 0, [...x,] = [];
|
||
· ▲
|
||
· ╰── Unexpected trailing comma after rest element
|
||
╰────
|
||
|
||
× Spread must be last element
|
||
╭─[language/expressions/assignment/dstr/array-rest-before-rest.js:22:1]
|
||
22 │
|
||
23 │ 0, [...x, ...y] = [];
|
||
· ──┬─
|
||
· ╰── Spread must be last element
|
||
╰────
|
||
|
||
× Unexpected trailing comma after rest element
|
||
╭─[language/expressions/assignment/dstr/array-rest-elision-invalid.js:22:1]
|
||
22 │
|
||
23 │ 0, [...x,] = [];
|
||
· ▲
|
||
· ╰── Unexpected trailing comma after rest element
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/array-rest-init.js:23:1]
|
||
23 │
|
||
24 │ 0, [...x = 1] = [];
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/array-rest-nested-array-invalid.js:22:1]
|
||
22 │
|
||
23 │ 0, [...[(x, y)]] = [[]];
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/array-rest-nested-obj-invalid.js:22:1]
|
||
22 │
|
||
23 │ 0, [...{ get x() {} }] = [[]];
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/obj-prop-elem-target-memberexpr-optchain-prop-ref-init.js:55:1]
|
||
55 │
|
||
56 │ 0, { x: y?.z = 42 } = { x: 23 };
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/obj-prop-elem-target-obj-literal-optchain-prop-ref-init.js:54:1]
|
||
54 │
|
||
55 │ ╭─▶ 0, { x: {
|
||
56 │ │ set y(val) {
|
||
57 │ │ throw new Test262Error('The property should not be accessed.');
|
||
58 │ │ }
|
||
59 │ ├─▶ }?.y = 42} = {x: 42};
|
||
· ╰──── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/obj-prop-nested-array-invalid.js:22:1]
|
||
22 │
|
||
23 │ 0, { x: [(x, y)] } = { x: [] };
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/dstr/obj-prop-nested-obj-invalid.js:22:1]
|
||
22 │
|
||
23 │ 0, { x: { get x() {} } } = { x: {} };
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Spread must be last element
|
||
╭─[language/expressions/assignment/dstr/obj-rest-not-last-element-invalid.js:23:1]
|
||
23 │
|
||
24 │ 0, {...rest, b} = {}
|
||
· ───┬───
|
||
· ╰── Spread must be last element
|
||
25 │ ;
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-break-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { bre\u0061k } = { break: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-case-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { c\u0061se } = { case: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-catch-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { c\u0061tch } = { catch: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-class-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { cl\u0061ss } = { class: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-const-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0063onst } = { const: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-continue-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0063ontinue } = { continue: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-debugger-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0064ebugger } = { debugger: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-default-escaped-ext.js:39:1]
|
||
39 │
|
||
40 │ var x = { def\u{61}ult } = { default: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-default-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { def\u0061ult } = { default: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-default.js:39:1]
|
||
39 │
|
||
40 │ var x = { default } = { default: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-delete-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0064elete } = { delete: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-do-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0064o } = { do: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-else-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0065lse } = { else: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-enum-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0065num } = { enum: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-export-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0065xport } = { export: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-extends-escaped-ext.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u{65}xtends } = { extends: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-extends-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0065xtends } = { extends: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-extends.js:39:1]
|
||
39 │
|
||
40 │ var x = { extends } = { extends: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-finally-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0066inally } = { finally: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-for-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0066or } = { for: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-function-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0066unction } = { function: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-if-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { i\u0066 } = { if: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-import-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0069mport } = { import: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-in-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0069n } = { in: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-instanceof-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { \u0069nstanceof } = { instanceof: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-new-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { n\u0065w } = { new: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-return-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { r\u0065turn } = { return: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-super-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { sup\u0065r } = { super: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-switch-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { sw\u0069tch } = { switch: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-this-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { th\u0069s } = { this: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-throw-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { t\u0068row } = { throw: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-try-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { tr\u0079 } = { try: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-typeof-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { typ\u0065of } = { typeof: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-var-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { v\u0061r } = { var: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-void-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { voi\u0064 } = { void: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-while-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { whil\u0065 } = { while: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignment/dstr/syntax-error-ident-ref-with-escaped.js:39:1]
|
||
39 │
|
||
40 │ var x = { w\u0069th } = { with: 42 };
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/non-simple-target.js:17:1]
|
||
17 │
|
||
18 │ 1 = 1;
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-assignment-inside-function.js:21:1]
|
||
21 │ var a, b = 2;
|
||
22 │ (a = b) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
23 │ }
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-assignment.js:20:1]
|
||
20 │ var a, b = 2;
|
||
21 │ (a = b) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-boolean.js:21:1]
|
||
21 │
|
||
22 │ true = 42;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-cover-newtarget.js:28:1]
|
||
28 │ function f() {
|
||
29 │ (new.target) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
30 │ }
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-cover-yieldexpr.js:31:1]
|
||
31 │ function* g() {
|
||
32 │ (yield) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
33 │ }
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-newtarget.js:28:1]
|
||
28 │ function f() {
|
||
29 │ new.target = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
30 │ }
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-null.js:21:1]
|
||
21 │
|
||
22 │ null = 42;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-number.js:21:1]
|
||
21 │
|
||
22 │ 42 = 42;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignment/target-string.js:21:1]
|
||
21 │
|
||
22 │ 'x' = 42;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x - y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 - 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true - false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x + y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 + 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true + false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/assignmenttargettype/direct-arrowfunction-0.js:19:1]
|
||
19 │
|
||
20 │ () => {} = 1;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-arrowfunction-1.js:19:1]
|
||
19 │
|
||
20 │ () => ({}) = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-arrowfunction-2.js:19:1]
|
||
19 │
|
||
20 │ (x => x) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-arrowfunction-3.js:19:1]
|
||
19 │
|
||
20 │ ((x) => x) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-arrowfunction-4.js:19:1]
|
||
19 │
|
||
20 │ (() => 1) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-arrowfunction-5.js:19:1]
|
||
19 │
|
||
20 │ (() => true) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-arrowfunction-6.js:19:1]
|
||
19 │
|
||
20 │ (() => 1) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/assignmenttargettype/direct-asyncarrowfunction-0.js:19:1]
|
||
19 │
|
||
20 │ async () => {} = 1;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-asyncarrowfunction-1.js:19:1]
|
||
19 │
|
||
20 │ async () => ({}) = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-asyncarrowfunction-2.js:19:1]
|
||
19 │
|
||
20 │ (async x => x) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-asyncarrowfunction-3.js:19:1]
|
||
19 │
|
||
20 │ (async (x) => x) = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-asyncarrowfunction-4.js:19:1]
|
||
19 │
|
||
20 │ (async () => 1) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-asyncarrowfunction-5.js:19:1]
|
||
19 │
|
||
20 │ (async () => true) = 1;
|
||
· ────────┬───────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-asyncarrowfunction-6.js:19:1]
|
||
19 │
|
||
20 │ (async () => 1) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x & y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 & 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true & false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x | y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 | 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true | false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x ^ y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 ^ 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true ^ false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-callexpression-arguments.js:19:1]
|
||
19 │
|
||
20 │ f() = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-callexpression-templateliteral.js:19:1]
|
||
19 │
|
||
20 │ f()`` = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x ?? y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 ?? 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true ?? false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x == y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 == 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true == false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x != y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 != 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true != false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x == y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 == 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true == false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x !== y = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 !== 2 = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true !== false = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-0.js:19:1]
|
||
19 │
|
||
20 │ (x, y = z) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-1.js:19:1]
|
||
19 │
|
||
20 │ (x, y = 1) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-2.js:19:1]
|
||
19 │
|
||
20 │ (x, y = true) = 1;
|
||
· ─────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-import.meta.js:19:1]
|
||
19 │
|
||
20 │ import.meta = 1;
|
||
· ─────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/direct-importcall.js:19:1]
|
||
19 │
|
||
20 │ import() = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-0.js:19:1]
|
||
19 │
|
||
20 │ (x = y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-1.js:19:1]
|
||
19 │
|
||
20 │ (x = 1) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-2.js:19:1]
|
||
19 │
|
||
20 │ (x = true) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js:19:1]
|
||
19 │
|
||
20 │ (x ??= y) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js:19:1]
|
||
19 │
|
||
20 │ (x ??= 1) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js:19:1]
|
||
19 │
|
||
20 │ (x ??= true) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js:19:1]
|
||
19 │
|
||
20 │ (x &&= y) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js:19:1]
|
||
19 │
|
||
20 │ (x &&= 1) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js:19:1]
|
||
19 │
|
||
20 │ (x &&= true) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js:19:1]
|
||
19 │
|
||
20 │ (x ||= y) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js:19:1]
|
||
19 │
|
||
20 │ (x ||= 1) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js:19:1]
|
||
19 │
|
||
20 │ (x ||= true) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-minus-minus.js:19:1]
|
||
19 │
|
||
20 │ x-- = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-lefthandsideexpression-plus-plus.js:19:1]
|
||
19 │
|
||
20 │ x++ = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x && y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 && 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true && false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x || y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 || 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true || false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-memberexpression-templateliteral.js:19:1]
|
||
19 │
|
||
20 │ o.f()`` = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-minus-minus-unaryexpression.js:19:1]
|
||
19 │
|
||
20 │ --x = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x * y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 * 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true * false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js:19:1]
|
||
19 │
|
||
20 │ x / y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js:19:1]
|
||
19 │
|
||
20 │ 1 / 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js:19:1]
|
||
19 │
|
||
20 │ true / false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-new-memberexpression-arguments.js:19:1]
|
||
19 │
|
||
20 │ new f() = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-new-newexpression.js:19:1]
|
||
19 │
|
||
20 │ new f = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-optionalexpression.js:20:1]
|
||
20 │
|
||
21 │ x?.y = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-plus-plus-unaryexpression.js:19:1]
|
||
19 │
|
||
20 │ ++x = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-asyncfunctionexpression.js:15:1]
|
||
15 │
|
||
16 │ async function () {} = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-asyncgeneratorexpression.js:15:1]
|
||
15 │
|
||
16 │ async function () {} = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-classexpression.js:15:1]
|
||
15 │
|
||
16 │ class {} = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-functionexpression.js:15:1]
|
||
15 │
|
||
16 │ function() {} = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-generatorexpression.js:15:1]
|
||
15 │
|
||
16 │ function * () {} = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-literal-boolean.js:15:1]
|
||
15 │
|
||
16 │ true = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-literal-null.js:15:1]
|
||
15 │
|
||
16 │ null = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-literal-numeric.js:15:1]
|
||
15 │
|
||
16 │ 0 = 1;
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-literal-string.js:15:1]
|
||
15 │
|
||
16 │ '' = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-objectliteral.js:15:1]
|
||
15 │
|
||
16 │ {} = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-regularexpressionliteral.js:15:1]
|
||
15 │
|
||
16 │ /1/ = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-templateliteral.js:15:1]
|
||
15 │
|
||
16 │ `` = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-primaryexpression-this.js:15:1]
|
||
15 │
|
||
16 │ this = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x >= y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 >= 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true >= false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x > y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 > 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true > false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x in y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 in 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true in false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x instanceof y = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 instanceof 2 = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true instanceof false = 1;
|
||
· ──────────┬──────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x <= y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 <= 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true <= false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x < y = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 < 2 = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true < false = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x << y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 << 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true << false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x >> y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 >> 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true >> false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x >>> y = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 >>> 2 = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true >>> false = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js:19:1]
|
||
19 │
|
||
20 │ (x ? y : z) = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js:19:1]
|
||
19 │
|
||
20 │ (1 ? 2 : 3) = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js:19:1]
|
||
19 │
|
||
20 │ (true ? false : true) = 1;
|
||
· ─────────┬─────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-delete-unaryexpression.js:19:1]
|
||
19 │
|
||
20 │ delete x.y = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-0.js:19:1]
|
||
19 │
|
||
20 │ !x = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-1.js:19:1]
|
||
19 │
|
||
20 │ !1 = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-2.js:19:1]
|
||
19 │
|
||
20 │ !true = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-0.js:19:1]
|
||
19 │
|
||
20 │ -x = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-1.js:19:1]
|
||
19 │
|
||
20 │ -1 = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-2.js:19:1]
|
||
19 │
|
||
20 │ -true = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-0.js:19:1]
|
||
19 │
|
||
20 │ +x = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-1.js:19:1]
|
||
19 │
|
||
20 │ +1 = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-2.js:19:1]
|
||
19 │
|
||
20 │ +true = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-0.js:19:1]
|
||
19 │
|
||
20 │ ~x = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-1.js:19:1]
|
||
19 │
|
||
20 │ ~1 = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-2.js:19:1]
|
||
19 │
|
||
20 │ ~true = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-0.js:19:1]
|
||
19 │
|
||
20 │ typeof x = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-1.js:19:1]
|
||
19 │
|
||
20 │ typeof 1 = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-2.js:19:1]
|
||
19 │
|
||
20 │ typeof true = 1;
|
||
· ─────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-0.js:19:1]
|
||
19 │
|
||
20 │ void x = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-1.js:19:1]
|
||
19 │
|
||
20 │ void 1 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-2.js:19:1]
|
||
19 │
|
||
20 │ void true = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-0.js:19:1]
|
||
19 │
|
||
20 │ x ** y = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-1.js:19:1]
|
||
19 │
|
||
20 │ 1 ** 2 = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-2.js:19:1]
|
||
19 │
|
||
20 │ true ** false = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/direct-yieldexpression-1.js:19:1]
|
||
19 │
|
||
20 │ yield * x = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x - y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 - 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true - false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x + y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 + 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true + false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-arrowfunction-0.js:22:1]
|
||
22 │
|
||
23 │ (() => {}) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-arrowfunction-1.js:22:1]
|
||
22 │
|
||
23 │ (() => ({})) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-arrowfunction-2.js:22:1]
|
||
22 │
|
||
23 │ ((x => x)) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-arrowfunction-3.js:22:1]
|
||
22 │
|
||
23 │ (((x) => x)) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-arrowfunction-4.js:22:1]
|
||
22 │
|
||
23 │ ((() => 1)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-arrowfunction-5.js:22:1]
|
||
22 │
|
||
23 │ ((() => true)) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-arrowfunction-6.js:22:1]
|
||
22 │
|
||
23 │ ((() => 1)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-0.js:22:1]
|
||
22 │
|
||
23 │ (async () => {}) = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-1.js:22:1]
|
||
22 │
|
||
23 │ (async () => ({})) = 1;
|
||
· ────────┬───────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-2.js:22:1]
|
||
22 │
|
||
23 │ ((async x => x)) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-3.js:22:1]
|
||
22 │
|
||
23 │ ((async (x) => x)) = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-4.js:22:1]
|
||
22 │
|
||
23 │ ((async () => 1)) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-5.js:22:1]
|
||
22 │
|
||
23 │ ((async () => true)) = 1;
|
||
· ────────┬───────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-6.js:22:1]
|
||
22 │
|
||
23 │ ((async () => 1)) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x & y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 & 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true & false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x | y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 | 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true | false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x ^ y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 ^ 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true ^ false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-callexpression-arguments.js:22:1]
|
||
22 │
|
||
23 │ (f()) = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-callexpression-templateliteral.js:22:1]
|
||
22 │
|
||
23 │ (f()``) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x ?? y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 ?? 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true ?? false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x == y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 == 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true == false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x != y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 != 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true != false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x == y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 == 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true == false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x !== y) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 !== 2) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true !== false) = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-0.js:22:1]
|
||
22 │
|
||
23 │ ((x, y = z)) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-1.js:22:1]
|
||
22 │
|
||
23 │ ((x, y = 1)) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-2.js:22:1]
|
||
22 │
|
||
23 │ ((x, y = true)) = 1;
|
||
· ─────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-import.meta.js:22:1]
|
||
22 │
|
||
23 │ (import.meta) = 1;
|
||
· ─────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-importcall.js:22:1]
|
||
22 │
|
||
23 │ (import()) = 1;
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-0.js:22:1]
|
||
22 │
|
||
23 │ ((x = y)) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-1.js:22:1]
|
||
22 │
|
||
23 │ ((x = 1)) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-2.js:22:1]
|
||
22 │
|
||
23 │ ((x = true)) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js:22:1]
|
||
22 │
|
||
23 │ ((x ??= y)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js:22:1]
|
||
22 │
|
||
23 │ ((x ??= 1)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js:22:1]
|
||
22 │
|
||
23 │ ((x ??= true)) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js:22:1]
|
||
22 │
|
||
23 │ ((x &&= y)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js:22:1]
|
||
22 │
|
||
23 │ ((x &&= 1)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js:22:1]
|
||
22 │
|
||
23 │ ((x &&= true)) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js:22:1]
|
||
22 │
|
||
23 │ ((x ||= y)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js:22:1]
|
||
22 │
|
||
23 │ ((x ||= 1)) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js:22:1]
|
||
22 │
|
||
23 │ ((x ||= true)) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-minus-minus.js:22:1]
|
||
22 │
|
||
23 │ (x--) = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-plus-plus.js:22:1]
|
||
22 │
|
||
23 │ (x++) = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x && y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 && 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true && false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x || y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 || 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true || false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-memberexpression-templateliteral.js:22:1]
|
||
22 │
|
||
23 │ (o.f()``) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-minus-minus-unaryexpression.js:22:1]
|
||
22 │
|
||
23 │ (--x) = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x * y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 * 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true * false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js:22:1]
|
||
22 │
|
||
23 │ (x / y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js:22:1]
|
||
22 │
|
||
23 │ (1 / 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js:22:1]
|
||
22 │
|
||
23 │ (true / false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-new-memberexpression-arguments.js:22:1]
|
||
22 │
|
||
23 │ (new f()) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-new-newexpression.js:22:1]
|
||
22 │
|
||
23 │ (new f) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-optionalexpression.js:23:1]
|
||
23 │
|
||
24 │ (x?.y) = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-plus-plus-unaryexpression.js:22:1]
|
||
22 │
|
||
23 │ (++x) = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncfunctionexpression.js:18:1]
|
||
18 │
|
||
19 │ (async function () {}) = 1;
|
||
· ──────────┬─────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncgeneratorexpression.js:18:1]
|
||
18 │
|
||
19 │ (async function () {}) = 1;
|
||
· ──────────┬─────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-classexpression.js:18:1]
|
||
18 │
|
||
19 │ (class {}) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-functionexpression.js:18:1]
|
||
18 │
|
||
19 │ (function() {}) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-generatorexpression.js:18:1]
|
||
18 │
|
||
19 │ (function * () {}) = 1;
|
||
· ────────┬───────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-boolean.js:18:1]
|
||
18 │
|
||
19 │ (true) = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-null.js:18:1]
|
||
18 │
|
||
19 │ (null) = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-numeric.js:18:1]
|
||
18 │
|
||
19 │ (0) = 1;
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-string.js:18:1]
|
||
18 │
|
||
19 │ ('') = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-objectliteral.js:18:1]
|
||
18 │
|
||
19 │ ({}) = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-regularexpressionliteral.js:18:1]
|
||
18 │
|
||
19 │ (/1/) = 1;
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-templateliteral.js:18:1]
|
||
18 │
|
||
19 │ (``) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-primaryexpression-this.js:18:1]
|
||
18 │
|
||
19 │ (this) = 1;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x >= y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 >= 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true >= false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x > y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 > 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true > false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x in y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 in 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true in false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x instanceof y) = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 instanceof 2) = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true instanceof false) = 1;
|
||
· ──────────┬──────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x <= y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 <= 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true <= false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x < y) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 < 2) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true < false) = 1;
|
||
· ──────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x << y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 << 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true << false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x >> y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 >> 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true >> false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x >>> y) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 >>> 2) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true >>> false) = 1;
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js:22:1]
|
||
22 │
|
||
23 │ ((x ? y : z)) = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js:22:1]
|
||
22 │
|
||
23 │ ((1 ? 2 : 3)) = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js:22:1]
|
||
22 │
|
||
23 │ ((true ? false : true)) = 1;
|
||
· ─────────┬─────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-delete-unaryexpression.js:22:1]
|
||
22 │
|
||
23 │ (delete x.y) = 1;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (!x) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (!1) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (!true) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (-x) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (-1) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (-true) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (+x) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (+1) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (+true) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (~x) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (~1) = 1;
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (~true) = 1;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (typeof x) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (typeof 1) = 1;
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (typeof true) = 1;
|
||
· ─────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (void x) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (void 1) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (void true) = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (x ** y) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (1 ** 2) = 1;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-2.js:22:1]
|
||
22 │
|
||
23 │ (true ** false) = 1;
|
||
· ──────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-yieldexpression-0.js:22:1]
|
||
22 │
|
||
23 │ (yield x) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/assignmenttargettype/parenthesized-yieldexpression-1.js:22:1]
|
||
22 │
|
||
23 │ (yield * x) = 1;
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-arrow-function/await-as-identifier-reference-escaped.js:32:1]
|
||
32 │ async () => {
|
||
33 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
34 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-arrow-function/await-as-identifier-reference-escaped.js:32:1]
|
||
32 │ async () => {
|
||
33 │ void \u0061wait;
|
||
· ─
|
||
34 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-arrow-function/await-as-identifier-reference.js:32:1]
|
||
32 │ async () => {
|
||
33 │ void await;
|
||
· ─
|
||
34 │ }
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-arrow-function/await-as-label-identifier-escaped.js:32:1]
|
||
32 │ async () => {
|
||
33 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
34 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-arrow-function/await-as-label-identifier-escaped.js:32:1]
|
||
32 │ async () => {
|
||
33 │ \u0061wait: ;
|
||
· ─
|
||
34 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-arrow-function/await-as-label-identifier.js:32:1]
|
||
32 │ async () => {
|
||
33 │ await: ;
|
||
· ─
|
||
34 │ }
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/async-arrow-function/early-errors-arrow-await-in-formals-default.js:13:1]
|
||
13 │ $DONOTEVALUATE();
|
||
14 │ async(x = await) => { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/async-arrow-function/early-errors-arrow-formals-lineterminator.js:32:1]
|
||
32 │ async
|
||
33 │ (foo) => { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-arrow-function/escaped-async.js:23:1]
|
||
23 │
|
||
24 │ \u0061sync () => {}
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-arrow-function/rest-params-trailing-comma-early-error.js:45:1]
|
||
45 │
|
||
46 │ (async (...a,) => {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
47 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-function/await-as-identifier-reference-escaped.js:28:1]
|
||
28 │ var asyncFn = async function () {
|
||
29 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/await-as-identifier-reference-escaped.js:28:1]
|
||
28 │ var asyncFn = async function () {
|
||
29 │ void \u0061wait;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/await-as-identifier-reference.js:28:1]
|
||
28 │ var asyncFn = async function () {
|
||
29 │ void await;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-function/await-as-label-identifier-escaped.js:28:1]
|
||
28 │ var asyncFn = async function () {
|
||
29 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/await-as-label-identifier-escaped.js:28:1]
|
||
28 │ var asyncFn = async function () {
|
||
29 │ \u0061wait: ;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/await-as-label-identifier.js:28:1]
|
||
28 │ var asyncFn = async function () {
|
||
29 │ await: ;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/async-function/early-errors-expression-not-simple-assignment-target.js:15:1]
|
||
15 │
|
||
16 │ (async function foo() { } = 1)
|
||
· ────────────┬───────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-function/escaped-async.js:23:1]
|
||
23 │
|
||
24 │ void \u0061sync function f(){}
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-function/named-await-as-identifier-reference-escaped.js:28:1]
|
||
28 │ var asyncFn = async function asyncFn() {
|
||
29 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/named-await-as-identifier-reference-escaped.js:28:1]
|
||
28 │ var asyncFn = async function asyncFn() {
|
||
29 │ void \u0061wait;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/named-await-as-identifier-reference.js:28:1]
|
||
28 │ var asyncFn = async function asyncFn() {
|
||
29 │ void await;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-function/named-await-as-label-identifier-escaped.js:28:1]
|
||
28 │ var asyncFn = async function asyncFn() {
|
||
29 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/named-await-as-label-identifier-escaped.js:28:1]
|
||
28 │ var asyncFn = async function asyncFn() {
|
||
29 │ \u0061wait: ;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-function/named-await-as-label-identifier.js:28:1]
|
||
28 │ var asyncFn = async function asyncFn() {
|
||
29 │ await: ;
|
||
· ─
|
||
30 │ };
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-function/named-rest-params-trailing-comma-early-error.js:32:1]
|
||
32 │
|
||
33 │ (async function f(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-function/nameless-rest-params-trailing-comma-early-error.js:32:1]
|
||
32 │
|
||
33 │ (async function(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-generator/await-as-identifier-reference-escaped.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/await-as-identifier-reference-escaped.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ void \u0061wait;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/await-as-identifier-reference.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ void await;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-generator/await-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/await-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ \u0061wait: ;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/await-as-label-identifier.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ await: ;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/ary-ptrn-rest-not-final-ary.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function*([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/ary-ptrn-rest-not-final-id.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function*([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/ary-ptrn-rest-not-final-obj.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function*([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/dflt-ary-ptrn-rest-not-final-ary.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function*([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/dflt-ary-ptrn-rest-not-final-id.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function*([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/dflt-ary-ptrn-rest-not-final-obj.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function*([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/named-ary-ptrn-rest-not-final-ary.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function* h([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/named-ary-ptrn-rest-not-final-id.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function* h([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/named-ary-ptrn-rest-not-final-obj.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function* h([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/named-dflt-ary-ptrn-rest-not-final-ary.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function* h([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/named-dflt-ary-ptrn-rest-not-final-id.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function* h([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/dstr/named-dflt-ary-ptrn-rest-not-final-obj.js:32:1]
|
||
32 │ var f;
|
||
33 │ f = async function* h([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
34 │
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/early-errors-expression-label-name-await.js:22:1]
|
||
22 │ (async function*() {
|
||
23 │ await: 1;
|
||
· ─
|
||
24 │ });
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/async-generator/early-errors-expression-label-name-yield.js:24:1]
|
||
24 │ (async function*() {
|
||
25 │ yield: 1;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
26 │ });
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/async-generator/early-errors-expression-not-simple-assignment-target.js:16:1]
|
||
16 │
|
||
17 │ (async function*() { } = 1);
|
||
· ──────────┬──────────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/early-errors-expression-yield-star-after-newline.js:18:1]
|
||
18 │ yield
|
||
19 │ * 1;
|
||
· ─
|
||
20 │ });
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-generator/escaped-async.js:23:1]
|
||
23 │
|
||
24 │ void \u0061sync function* f(){};
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-generator/named-await-as-identifier-reference-escaped.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/named-await-as-identifier-reference-escaped.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ void \u0061wait;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/named-await-as-identifier-reference.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ void await;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-generator/named-await-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/named-await-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ \u0061wait: ;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/async-generator/named-await-as-label-identifier.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ await: ;
|
||
· ─
|
||
31 │ };
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/named-rest-params-trailing-comma-early-error.js:35:1]
|
||
35 │
|
||
36 │ 0, async function* g(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
37 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-generator/named-yield-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
31 │ };
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/async-generator/named-yield-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
31 │ };
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/async-generator/named-yield-as-label-identifier.js:29:1]
|
||
29 │ var gen = async function *g() {
|
||
30 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
31 │ };
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/async-generator/rest-params-trailing-comma-early-error.js:35:1]
|
||
35 │
|
||
36 │ 0, async function*(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
37 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/async-generator/yield-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
31 │ };
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/async-generator/yield-as-label-identifier-escaped.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
31 │ };
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/async-generator/yield-as-label-identifier.js:29:1]
|
||
29 │ var gen = async function *() {
|
||
30 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
31 │ };
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Invalid assignment
|
||
╭─[language/expressions/await/early-errors-await-not-simple-assignment-target.js:16:1]
|
||
16 │ async function foo() {
|
||
17 │ (await 1) = 1;
|
||
· ───┬───
|
||
· ╰── Cannot assign to this expression
|
||
18 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/await/no-operand.js:16:1]
|
||
16 │ async function foo() {
|
||
17 │ await;
|
||
· ─
|
||
18 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/call/S11.2.4_A1.3_T1.js:19:1]
|
||
19 │
|
||
20 │ f_arg(1,,2);
|
||
· ─
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-gen-method-static/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method-static/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ void \u0061wait;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method-static/await-as-identifier-reference.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ void await;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-gen-method-static/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method-static/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method-static/await-as-label-identifier.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ await: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/async-gen-method-static/rest-params-trailing-comma-early-error.js:59:1]
|
||
59 │ 0, class {
|
||
60 │ static async *method(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
61 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-gen-method-static/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/async-gen-method-static/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/async-gen-method-static/yield-as-label-identifier.js:34:1]
|
||
34 │ var C = class { static async *gen() {
|
||
35 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-gen-method/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ void \u0061wait;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method/await-as-identifier-reference.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ void await;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-gen-method/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-gen-method/await-as-label-identifier.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ await: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/async-gen-method/rest-params-trailing-comma-early-error.js:59:1]
|
||
59 │ 0, class {
|
||
60 │ async *method(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
61 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-gen-method/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/async-gen-method/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/async-gen-method/yield-as-label-identifier.js:34:1]
|
||
34 │ var C = class { async *gen() {
|
||
35 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-method-static/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ static async method() {
|
||
36 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method-static/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ static async method() {
|
||
36 │ void \u0061wait;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method-static/await-as-identifier-reference.js:35:1]
|
||
35 │ static async method() {
|
||
36 │ void await;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-method-static/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ static async method() {
|
||
36 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method-static/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ static async method() {
|
||
36 │ \u0061wait: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method-static/await-as-label-identifier.js:35:1]
|
||
35 │ static async method() {
|
||
36 │ await: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/async-method-static/rest-params-trailing-comma-early-error.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async method(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-method/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ async method() {
|
||
36 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ async method() {
|
||
36 │ void \u0061wait;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method/await-as-identifier-reference.js:35:1]
|
||
35 │ async method() {
|
||
36 │ void await;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/async-method/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ async method() {
|
||
36 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ async method() {
|
||
36 │ \u0061wait: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/async-method/await-as-label-identifier.js:35:1]
|
||
35 │ async method() {
|
||
36 │ await: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/async-method/rest-params-trailing-comma-early-error.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async method(...a,) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async *method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async *method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async *method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-dflt-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async *method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-dflt-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async *method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-dflt-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async *method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-static-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async *method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-static-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async *method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-static-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async *method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-static-dflt-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async *method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-static-dflt-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async *method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-gen-meth-static-dflt-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async *method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async * #method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async * #method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async * #method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async * #method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async * #method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-dflt-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ async * #method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-static-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async * #method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-static-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async * #method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-static-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async * #method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-static-dflt-ary-ptrn-rest-not-final-ary.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async * #method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-static-dflt-ary-ptrn-rest-not-final-id.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async * #method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/async-private-gen-meth-static-dflt-ary-ptrn-rest-not-final-obj.js:56:1]
|
||
56 │ var C = class {
|
||
57 │ static async * #method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
58 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ *method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ *method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ *method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-dflt-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ *method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-dflt-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ *method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-dflt-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ *method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-static-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static *method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-static-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static *method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-static-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static *method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-static-dflt-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static *method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-static-dflt-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static *method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/gen-meth-static-dflt-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static *method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-dflt-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-dflt-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-dflt-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-static-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-static-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-static-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-static-dflt-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-static-dflt-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/meth-static-dflt-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ * #method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ * #method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ * #method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-dflt-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ * #method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-dflt-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ * #method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-dflt-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ * #method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-static-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static * #method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-static-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static * #method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-static-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static * #method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-static-dflt-ary-ptrn-rest-not-final-ary.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static * #method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-static-dflt-ary-ptrn-rest-not-final-id.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static * #method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-gen-meth-static-dflt-ary-ptrn-rest-not-final-obj.js:75:1]
|
||
75 │ var C = class {
|
||
76 │ static * #method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
77 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ #method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ #method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ #method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-dflt-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ #method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-dflt-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ #method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-dflt-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ #method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-static-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static #method([...[x], y]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-static-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static #method([...x, y]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-static-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static #method([...{ x }, y]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-static-dflt-ary-ptrn-rest-not-final-ary.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static #method([...[x], y] = [1, 2, 3]) {
|
||
· ───┬──
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-static-dflt-ary-ptrn-rest-not-final-id.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static #method([...x, y] = [1, 2, 3]) {
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[language/expressions/class/dstr/private-meth-static-dflt-ary-ptrn-rest-not-final-obj.js:72:1]
|
||
72 │ var C = class {
|
||
73 │ static #method([...{ x }, y] = [1, 2, 3]) {
|
||
· ────┬───
|
||
· ╰── Rest element must be last element
|
||
74 │
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ void \u0061wait;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/await-as-identifier-reference.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ void await;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/await-as-label-identifier.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ await: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/async-gen-private-method-static/yield-as-label-identifier.js:34:1]
|
||
34 │ var C = class { static async *#gen() {
|
||
35 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-gen-private-method/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method/await-as-identifier-reference-escaped.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ void \u0061wait;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method/await-as-identifier-reference.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ void await;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-gen-private-method/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method/await-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ \u0061wait: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-gen-private-method/await-as-label-identifier.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ await: ;
|
||
· ─
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-gen-private-method/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
36 │ }};
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/async-gen-private-method/yield-as-label-identifier-escaped.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/async-gen-private-method/yield-as-label-identifier.js:34:1]
|
||
34 │ var C = class { async *#gen() {
|
||
35 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
36 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-private-method-static/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ static async #method() {
|
||
36 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method-static/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ static async #method() {
|
||
36 │ void \u0061wait;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method-static/await-as-identifier-reference.js:35:1]
|
||
35 │ static async #method() {
|
||
36 │ void await;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-private-method-static/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ static async #method() {
|
||
36 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method-static/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ static async #method() {
|
||
36 │ \u0061wait: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method-static/await-as-label-identifier.js:35:1]
|
||
35 │ static async #method() {
|
||
36 │ await: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-private-method/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ async #method() {
|
||
36 │ void \u0061wait;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method/await-as-identifier-reference-escaped.js:35:1]
|
||
35 │ async #method() {
|
||
36 │ void \u0061wait;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method/await-as-identifier-reference.js:35:1]
|
||
35 │ async #method() {
|
||
36 │ void await;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/async-private-method/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ async #method() {
|
||
36 │ \u0061wait: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method/await-as-label-identifier-escaped.js:35:1]
|
||
35 │ async #method() {
|
||
36 │ \u0061wait: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[language/expressions/class/elements/async-private-method/await-as-label-identifier.js:35:1]
|
||
35 │ async #method() {
|
||
36 │ await: ;
|
||
· ─
|
||
37 │ }
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/fields-asi-3.js:16:1]
|
||
16 │ x = "string"
|
||
17 │ [0]() {}
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
18 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/fields-asi-4.js:16:1]
|
||
16 │ x = 42
|
||
17 │ *gen() {}
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
18 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/fields-asi-same-line-1.js:15:1]
|
||
15 │ var C = class {
|
||
16 │ field /* no ASI here */ method(){}
|
||
· ─────────┬─────────
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
17 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/fields-asi-same-line-2.js:15:1]
|
||
15 │ var C = class {
|
||
16 │ field = 1 /* no ASI here */ method(){}
|
||
· ─────────┬─────────
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
17 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Identifier `"x"` has already been declared
|
||
╭─[language/expressions/class/elements/fields-duplicate-privatenames.js:21:1]
|
||
21 │ var C = class {
|
||
22 │ #x;
|
||
· ─┬
|
||
· ╰── `x` has already been declared here
|
||
23 │ #x;
|
||
· ─┬
|
||
· ╰── It can not be redeclared here
|
||
24 │ }
|
||
╰────
|
||
|
||
× Classes can't have a field named 'constructor'
|
||
╭─[language/expressions/class/elements/fields-literal-name-propname-constructor.js:27:1]
|
||
27 │ var C = class {
|
||
28 │ constructor;
|
||
· ─────┬─────
|
||
· ╰── Classes can't have a field named 'constructor'
|
||
29 │ };
|
||
╰────
|
||
|
||
× Classes can't have a field named 'constructor'
|
||
╭─[language/expressions/class/elements/fields-literal-name-static-propname-constructor.js:27:1]
|
||
27 │ var C = class {
|
||
28 │ static constructor;
|
||
· ─────┬─────
|
||
· ╰── Classes can't have a field named 'constructor'
|
||
29 │ };
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[language/expressions/class/elements/fields-literal-name-static-propname-prototype.js:27:1]
|
||
27 │ var C = class {
|
||
28 │ static prototype;
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
29 │ };
|
||
╰────
|
||
|
||
× Classes can't have a field named 'constructor'
|
||
╭─[language/expressions/class/elements/fields-string-name-propname-constructor.js:28:1]
|
||
28 │ var C = class {
|
||
29 │ 'constructor';
|
||
· ──────┬──────
|
||
· ╰── Classes can't have a field named 'constructor'
|
||
30 │ };
|
||
╰────
|
||
|
||
× Classes can't have a field named 'constructor'
|
||
╭─[language/expressions/class/elements/fields-string-name-static-propname-constructor.js:28:1]
|
||
28 │ var C = class {
|
||
29 │ static 'constructor';
|
||
· ──────┬──────
|
||
· ╰── Classes can't have a field named 'constructor'
|
||
30 │ };
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[language/expressions/class/elements/fields-string-name-static-propname-prototype.js:28:1]
|
||
28 │ var C = class {
|
||
29 │ static 'prototype';
|
||
· ─────┬─────
|
||
· ╰── Classes may not have a static property named prototype
|
||
30 │ };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/gen-private-method-static/yield-as-label-identifier-escaped.js:33:1]
|
||
33 │ var C = class { static *#gen() {
|
||
34 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
35 │ }};
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/gen-private-method-static/yield-as-label-identifier-escaped.js:33:1]
|
||
33 │ var C = class { static *#gen() {
|
||
34 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
35 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/gen-private-method-static/yield-as-label-identifier.js:33:1]
|
||
33 │ var C = class { static *#gen() {
|
||
34 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
35 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[language/expressions/class/elements/gen-private-method/yield-as-label-identifier-escaped.js:33:1]
|
||
33 │ var C = class {*#gen() {
|
||
34 │ yi\u0065ld: ;
|
||
· ─────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
35 │ }};
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/gen-private-method/yield-as-label-identifier-escaped.js:33:1]
|
||
33 │ var C = class {*#gen() {
|
||
34 │ yi\u0065ld: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
35 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/gen-private-method/yield-as-label-identifier.js:33:1]
|
||
33 │ var C = class {*#gen() {
|
||
34 │ yield: ;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
35 │ }};
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/nested-equality-init-err-contains-arguments.js:31:1]
|
||
31 │ var C = class {
|
||
32 │ x = () => {} == arguments;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
33 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[language/expressions/class/elements/nested-equality-init-err-contains-super.js:24:1]
|
||
24 │ var C = class {
|
||
25 │ x = () => {} == super();
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
26 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
|
||
× Empty parenthesized expression
|
||
╭─[language/expressions/class/elements/syntax/early-errors/class-heritage-array-literal-arrow-heritage.js:22:1]
|
||
22 │
|
||
23 │ var C = class extends () => {} {
|
||
· ▲
|
||
· ╰── Expected an expression here
|
||
24 │
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/expressions/class/elements/syntax/early-errors/class-heritage-array-literal-arrow-heritage.js:22:1]
|
||
22 │
|
||
23 │ var C = class extends () => {} {
|
||
· ─┬
|
||
· ╰── Expect `{` here, but found `=>`
|
||
24 │
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[language/expressions/class/elements/syntax/early-errors/class-heritage-array-literal-async-arrow-heritage.js:22:1]
|
||
22 │
|
||
23 │ var C = class extends async () => {} {
|
||
· ─┬
|
||
· ╰── Expect `{` here, but found `=>`
|
||
24 │
|
||
╰────
|
||
|
||
× Invalid Character `'\0'`
|
||
╭─[language/expressions/class/elements/syntax/early-errors/grammar-field-identifier-invalid-ues-error.js:68:1]
|
||
68 │ var C = class {
|
||
69 │ \u0000;
|
||
· ▲
|
||
· ╰── Invalid Character ` |