microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.59k stars 12.44k forks source link

baconjs out of memory #18890

Closed ghost closed 7 years ago

ghost commented 7 years ago

Go to DefinitelyTyped/types/baconjs and run tsc.

All I see is:

#
# Fatal error in , line 0
# API fatal error handler returned after process out of memory
#

CC @sandersn who has looked into errors like this.

sandersn commented 7 years ago

I'm still in the process of making a smaller repro, but the cause appears to be the @augments tag in this construction:


    class Event<A> {
        value():A;
        hasValue():boolean;
        isInitial():boolean;
        isNext():boolean;
        isError():boolean;
        isEnd():boolean;
    }

    /** @augments Bacon.Event */
    class Next<A> extends Event<A> {
        constructor(value:A);
        constructor(f:() => A);
    }

This is odd, because I thought the augments tag was ignored except in JS.

ghost commented 7 years ago

Could be #18914 ?

sandersn commented 7 years ago

Yeah, it's fixed after I pulled in your changes.