Skip to content

Compiler hang when importing big JS file with --allowJs #17033

@pjmolina

Description

@pjmolina

TypeScript Version: 2.4.1

Repro project
When importing a big JS file (a working parser) (245 Kbytes commonjs format) (with --allowJs enabled) the compiler hangs forever. Minimal repro project provided: tsc-hang-00

Expected behavior:
Compilations ends with or without errors.

Actual behavior:
Compilations hangs forever and keeps consuming CPU.

Tests conditions

  • Windows 10, NodeJS 8.0, TS 2.4.1
  • Travis: Linux Container, NodeJS 8.0, TS 2.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions