Update TypeScript

This commit is contained in:
Michal Dorner 2022-08-19 22:19:29 +02:00
parent 8848447e3f
commit 4c7348c4be
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C
4 changed files with 12 additions and 4585 deletions

View file

@ -92,7 +92,8 @@ export class DartJsonParser implements TestParser {
try {
return JSON.parse(str)
} catch (e) {
const col = e.columnNumber !== undefined ? `:${e.columnNumber}` : ''
const errWithCol = e as {columnNumber?: number}
const col = errWithCol.columnNumber !== undefined ? `:${errWithCol.columnNumber}` : ''
throw new Error(`Invalid JSON at ${path}:${i + 1}${col}\n\n${e}`)
}
})