{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18216","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18216/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18216/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18216/events","html_url":"https://github.com/Microsoft/TypeScript/issues/18216","id":254768624,"number":18216,"title":"Unbalanced curly brackets crashes the compiler","user":{"login":"pelotom","id":128019,"avatar_url":"https://avatars2.githubusercontent.com/u/128019?v=4","gravatar_id":"","url":"https://api.github.com/users/pelotom","html_url":"https://github.com/pelotom","followers_url":"https://api.github.com/users/pelotom/followers","following_url":"https://api.github.com/users/pelotom/following{/other_user}","gists_url":"https://api.github.com/users/pelotom/gists{/gist_id}","starred_url":"https://api.github.com/users/pelotom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelotom/subscriptions","organizations_url":"https://api.github.com/users/pelotom/orgs","repos_url":"https://api.github.com/users/pelotom/repos","events_url":"https://api.github.com/users/pelotom/events{/privacy}","received_events_url":"https://api.github.com/users/pelotom/received_events","type":"User","site_admin":false},"labels":[{"id":113971304,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20More%20Info","name":"Needs More Info","color":"556b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-01T22:58:51Z","updated_at":"2017-09-05T20:01:24Z","closed_at":null,"author_association":"NONE","body":"**TypeScript Version:**  2.5.2\r\n\r\nIf you try to compile source with unbalanced curlies, e.g.\r\n\r\n```ts\r\nif (true) {\r\n```\r\n\r\nit hard-crashes the compiler with:\r\n\r\n```\r\n/Users/tom/code/console/node_modules/typescript/lib/tsc.js:2062\r\n            throw e;\r\n            ^\r\n\r\nError: Debug Failure. False expression.\r\n    at computePositionOfLineAndCharacter (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:3752:22)\r\n    at Object.getPositionOfLineAndCharacter (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:3742:16)\r\n    at Object.formatDiagnosticsWithColorAndContext (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:55574:40)\r\n    at reportDiagnosticWithColorAndContext (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:58771:25)\r\n    at reportDiagnostic (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:58733:9)\r\n    at reportDiagnostics (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:58738:13)\r\n    at compileProgram (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:59099:13)\r\n    at compile (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:59051:26)\r\n    at performCompilation (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:58940:33)\r\n    at Timeout.recompile [as _onTimeout] (/Users/tom/code/console/node_modules/typescript/lib/tsc.js:59039:13)\r\n    at ontimeout (timers.js:469:11)\r\n    at tryOnTimeout (timers.js:304:5)\r\n    at Timer.listOnTimeout (timers.js:264:5)\r\n```\r\n\r\nThis is a regression from 2.4.2, where it would instead gracefully report\r\n\r\n```\r\nsrc/example.ts(105,1): error TS1005: '}' expected.\r\n```\r\n\r\nThis is particularly bothersome because it crashes out of `--watch` mode."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/327286740","html_url":"https://github.com/Microsoft/TypeScript/issues/18216#issuecomment-327286740","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/18216","id":327286740,"user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars3.githubusercontent.com/u/6685088?v=4","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"created_at":"2017-09-05T20:01:24Z","updated_at":"2017-09-05T20:01:24Z","author_association":"MEMBER","body":"Not seeing this at 2.5.2. Can you provide an exact repro?"}}
{"actor":{"display_login":"RyanCavanaugh"}}