denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
93.06k stars 5.14k forks source link

`deno doc` stack overflows on namespace exporting itself #23711

Open crowlKats opened 1 week ago

crowlKats commented 1 week ago

The file is https://gist.github.com/crowlKats/1f6ed084bbab0a10267df9ed31564599, which is a generated cleaned-up version of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/test.d.ts.

I experimented around by reducing the file, and ended up on the case of a namespace exporting itself inside itself being at fault:

export namespace test {
  export { test };
}