Skip to content

Conversation

@simonw
Copy link
Owner

@simonw simonw commented Dec 25, 2025

Look in open-problems.md and fix the SyntaxError Position Tracking problem

Include line and column information in JSSyntaxError messages. Previously, JSSyntaxError stored line/column as attributes but didn't include them in the error message string. Now errors display as "SyntaxError: message (line N, column M)".

  • Updated JSSyntaxError.init to format message with position info
  • Fixed test_syntax_error_position to use actual invalid syntax
  • Removed xfail marker since the issue is now resolved
  • Updated open-problems.md to remove this issue (14 xfail tests remain)

https://gistpreview.github.io/?50d6ca42c8fcc7738d72c848ce86c33e

Include line and column information in JSSyntaxError messages.
Previously, JSSyntaxError stored line/column as attributes but didn't
include them in the error message string. Now errors display as
"SyntaxError: message (line N, column M)".

- Updated JSSyntaxError.__init__ to format message with position info
- Fixed test_syntax_error_position to use actual invalid syntax
- Removed xfail marker since the issue is now resolved
- Updated open-problems.md to remove this issue (14 xfail tests remain)
@simonw simonw merged commit 2a589a5 into main Dec 25, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants