Skip to content

Commit

Permalink
update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Mar 11, 2024
1 parent 60fc61d commit f8f5873
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions tasks/coverage/parser_babel.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2214,19 +2214,19 @@ Expect to Parse: "typescript/types/const-type-parameters-babel-7/input.ts"
× Unexpected trailing comma after rest element
╭─[es2015/array-rest-spread/comma-after-rest/input.js:1:6]
1 │ [...a,] = [];
·
·
╰────

× Unexpected trailing comma after rest element
╭─[es2015/array-rest-spread/comma-after-spread-for-in/input.js:1:11]
1 │ for ([...a,] in []);
·
·
╰────

× Unexpected trailing comma after rest element
╭─[es2015/array-rest-spread/comma-after-spread-nested/input.js:1:7]
1 │ [[...a,]] = [];
·
·
╰────

× Spread must be last element
Expand Down
12 changes: 6 additions & 6 deletions tasks/coverage/parser_test262.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,7 @@ Expect Syntax Error: "language/import/import-attributes/json-named-bindings.js"
╭─[language/expressions/assignment/dstr/array-rest-before-elision.js:23:9]
22 │
23 │ 0, [...x,] = [];
·
·
╰────

× Spread must be last element
Expand All @@ -2437,7 +2437,7 @@ Expect Syntax Error: "language/import/import-attributes/json-named-bindings.js"
╭─[language/expressions/assignment/dstr/array-rest-elision-invalid.js:23:9]
22 │
23 │ 0, [...x,] = [];
·
·
╰────

× Cannot assign to this expression
Expand Down Expand Up @@ -30252,7 +30252,7 @@ Expect Syntax Error: "language/import/import-attributes/json-named-bindings.js"
╭─[language/statements/for-in/dstr/array-rest-before-elision.js:32:11]
31 │
32 │ for ([...x,] in [[]]) ;
·
·
╰────

× Unexpected token
Expand All @@ -30266,7 +30266,7 @@ Expect Syntax Error: "language/import/import-attributes/json-named-bindings.js"
╭─[language/statements/for-in/dstr/array-rest-elision-invalid.js:32:11]
31 │
32 │ for ([...x,] in [[]]) ;
·
·
╰────

× Unexpected token
Expand Down Expand Up @@ -30758,7 +30758,7 @@ Expect Syntax Error: "language/import/import-attributes/json-named-bindings.js"
╭─[language/statements/for-of/dstr/array-rest-before-elision.js:32:11]
31 │
32 │ for ([...x,] of [[]]) ;
·
·
╰────

× Unexpected token
Expand All @@ -30772,7 +30772,7 @@ Expect Syntax Error: "language/import/import-attributes/json-named-bindings.js"
╭─[language/statements/for-of/dstr/array-rest-elision-invalid.js:32:11]
31 │
32 │ for ([...x,] of [[]]) ;
·
·
╰────

× Unexpected token
Expand Down
2 changes: 1 addition & 1 deletion tasks/coverage/parser_typescript.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15205,7 +15205,7 @@ Expect to Parse: "conformance/salsa/plainJSRedeclare3.ts"
╭─[conformance/es7/trailingCommasInBindingPatterns.ts:4:7]
3 │ let c, d;
4 │ ([...c,] = []);
·
·
5 │ ({...d,} = {});
╰────

Expand Down

0 comments on commit f8f5873

Please sign in to comment.