Skip to content

Commit 6485307

Browse files
bartlomiejuclaude
andcommitted
fix: update spec tests for latest parse error format
Location line now appears after the code snippet, and string literal token descriptions are simplified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7da8f57 commit 6485307

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Expected ',', got 'following'
2-
at [WILDCARD]/error_syntax.js:3:6
32
|
43
3 | (the following is a syntax error ^^ ! )
54
| ~~~~~~~~~
5+
at [WILDCARD]/error_syntax.js:3:6
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Expression expected
2-
at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22
32
|
43
2 | setTimeout(() => {}),
54
| ~
5+
at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, (
2-
at [WILDCARD]syntax_error.ts:4:1
32
|
43
4 | }
54
| ~
5+
at [WILDCARD]syntax_error.ts:4:1

0 commit comments

Comments
 (0)