Skip to content

Typescript full mode fixes #1295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 1, 2019

Conversation

asger-semmle
Copy link
Contributor

Fixes some crashes in the 14 projects that started failing after TypeScript full mode became the default on LGTM.com this week.

Some issues that came from the TypeScript compiler itself:

  • Some internal debug assertions failed, but went way after upgrading to 3.4.5.
  • Calling getProperties() on the type typeof globalThis | {} caused it to crash. I've worked around it by catching the exception.
  • Calling typeSignatureToString on this type signature caused an out-of-memory error for some reason. I suspect this has something to do with the use of infer types, so I've disabled type extraction inside conditional types (which are where infer types are introduced).

Lastly, we didn't handle export= correctly when the right-hand side was an expression. I've fixed that.

I'll run an evaluation as well.

@asger-semmle asger-semmle added JS WIP This is a work-in-progress, do not merge yet! labels Apr 30, 2019
@asger-semmle asger-semmle requested a review from a team as a code owner April 30, 2019 15:15
@asger-semmle asger-semmle removed the WIP This is a work-in-progress, do not merge yet! label Apr 30, 2019
@asger-semmle
Copy link
Contributor Author

Evaluation looks fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants