-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 3.1.0-dev.20180925
git clone --depth=1 https://github.com/chemzqm/wept
cd wept
tsc --init
tsc --allowJs --checkJs
Compiler crashes with the callstack:
Error: Debug Failure.
at Object.assertDefined (node_modules\typescript\lib\tsc.js:1268:24)
at getJSDocHost (node_modules\typescript\lib\tsc.js:7723:25)
at getHostSignatureFromJSDoc (node_modules\typescript\lib\tsc.js:7709:46)
at Object.getParameterSymbolFromJSDoc (node_modules\typescript\lib\tsc.js:7700:20)
at checkJSDocParameterTag (node_modules\typescript\lib\tsc.js:43646:21)
at checkSourceElement (node_modules\typescript\lib\tsc.js:45970:28)
at Object.forEach (node_modules\typescript\lib\tsc.js:169:30)
at node_modules\typescript\lib\tsc.js:45896:31
at Object.forEach (node_modules\typescript\lib\tsc.js:169:30)
at checkSourceElement (node_modules\typescript\lib\tsc.js:45894:20)
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFixedA PR has been merged for this issueA PR has been merged for this issue
Type
Projects
Relationships
Development
Select code repository
Activity
RyanCavanaugh commentedon Sep 25, 2018
Also repros on 3.0
RyanCavanaugh commentedon Sep 25, 2018
Minimal repro
The
if
expression has to befalse
🤷♂️sandersn commentedon Sep 27, 2018
Parent pointers aren't filled in for the
@param
tag. Pretty sure this is supposed to happen in the parser.sandersn commentedon Sep 27, 2018
Introduced in 2.9
sandersn commentedon Sep 27, 2018
Specifically, bisecting leads to #23947, which was a fairly large change that added
@callback
and corrected handling of@template
in conjunction with jsdoc type aliases.sandersn commentedon Sep 27, 2018
In the binder, unreachable code mistakenly skips the
bindJSDoc
call inbindChildrenWorker
, which sets parent pointers. That's why it has to beif (false)
and notif (!!false)
, for example.sandersn commentedon Oct 1, 2018
Yes, not sure why github didn't catch it.
4 remaining items