Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Changed
- Fix `noImplicitAny` TypeScript errors in `x-parser.js` (#357).
- Re-enable strict type errors for `strictNullChecks`,
`useUnknownInCatchVariables`, and `strictFunctionTypes` (#357).
- Bump devDependencies (eslint 10, typescript 6, eslint-plugin-jsdoc 62, etc.).
Expand Down
4 changes: 4 additions & 0 deletions test/test-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,8 @@ describe('validate', () => {
`;
});

// The eslint-plugin-x-element package relies on error context to map
// parsing errors to source locations. These tests ensure the contract.
it('errors contain context for debugging', () => {
let error;
try {
Expand All @@ -1669,6 +1671,8 @@ describe('validate', () => {
assert(context.end === 5);
});

// When an error occurs before character-level parsing begins (e.g., a raw
// string escape), start and end are null to signal no position is available.
it('initial error contains context for debugging', () => {
let error;
try {
Expand Down
Loading