The program exits with the following error:
thread 'main' has overflowed its stack
error: process didn't exit successfully: target\debug\examples\ddoc.exe test3.d.ts (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
Solution:
I added a check to see if the export is the same as the namespace and, if so, it ignores generating the DocNode for it.
This PR fixes: https://github.com/denoland/deno/issues/23711
When executing
deno doc
on a TypeScript file that contains a namespace exporting itself, like in this file example: https://gist.github.com/crowlKats/1f6ed084bbab0a10267df9ed31564599The program exits with the following error: thread 'main' has overflowed its stack error: process didn't exit successfully:
target\debug\examples\ddoc.exe test3.d.ts
(exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)Solution: I added a check to see if the export is the same as the namespace and, if so, it ignores generating the
DocNode
for it.