Skip to content

rictic/tsc_hang_from_if_statements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo demonstrates a class of TypeScript program that appears to hang the TypeScript compiler (100% CPU usage for an extended period of time).

As a result, opening example_repro.ts in your text editor may cause it to consume a lot of resources.

To repro

tsc example_repro.ts --noEmit

Or run:

npm install
npm run hang_typescript

A program to generate new examples of this pattern is provided at gen_repro.js. npm run generate will write a new example to example_repro.ts

About

A repro of a TypeScript compiler issue with many nested if statements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published