Skip to content

Stack overflow within checkExpression #27713

Closed
@minestarks

Description

@minestarks

TypeScript Version: 3.2.0-dev.20181011
Confirmed repros back to at least 2.4

git clone --depth=1 https://github.com/quasarframework/quasar.git
cd quasar
tsc --init
tsc --allowJs --checkJs

Compiler crashes with the callstack:

RangeError: Maximum call stack size exceeded
    at getTypeOfVariableOrParameterOrPropertyWorker (/usr/lib/node_modules/typescript/lib/tsc.js:28716:62)
    at getTypeOfVariableOrParameterOrProperty (/usr/lib/node_modules/typescript/lib/tsc.js:28714:48)
    at getTypeOfSymbol (/usr/lib/node_modules/typescript/lib/tsc.js:28979:24)
    at getTypeOfAlias (/usr/lib/node_modules/typescript/lib/tsc.js:28942:23)
    at getTypeOfSymbol (/usr/lib/node_modules/typescript/lib/tsc.js:28991:24)
    at checkIdentifier (/usr/lib/node_modules/typescript/lib/tsc.js:37353:49)
    at checkExpressionWorker (/usr/lib/node_modules/typescript/lib/tsc.js:42398:28)
    at checkExpression (/usr/lib/node_modules/typescript/lib/tsc.js:42374:42)
    at checkExpressionForMutableLocation (/usr/lib/node_modules/typescript/lib/tsc.js:42310:24)
    at checkArrayLiteral (/usr/lib/node_modules/typescript/lib/tsc.js:38457:32)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions