You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
Should either compile or give an error
Actual behavior:
Crash:
/tmp/xx/node_modules/typescript/lib/tsc.js:78471
throw e;
^
TypeError: Cannot read property 'length' of undefined
at checkModuleDeclaration (/tmp/xx/node_modules/typescript/lib/tsc.js:52018:44)
at checkSourceElementWorker (/tmp/xx/node_modules/typescript/lib/tsc.js:52563:28)
at checkSourceElement (/tmp/xx/node_modules/typescript/lib/tsc.js:52408:17)
at Object.forEach (/tmp/xx/node_modules/typescript/lib/tsc.js:225:30)
at checkSourceFileWorker (/tmp/xx/node_modules/typescript/lib/tsc.js:52702:20)
at checkSourceFile (/tmp/xx/node_modules/typescript/lib/tsc.js:52676:13)
at getDiagnosticsWorker (/tmp/xx/node_modules/typescript/lib/tsc.js:52743:17)
at Object.getDiagnostics (/tmp/xx/node_modules/typescript/lib/tsc.js:52732:24)
at /tmp/xx/node_modules/typescript/lib/tsc.js:78489:85
at runWithCancellationToken (/tmp/xx/node_modules/typescript/lib/tsc.js:78464:24)
TypeScript Version: v3.7.0-dev.20191006
Search Terms: globalThis namespace crash
Code
Expected behavior:
Should either compile or give an error
Actual behavior:
Crash:
Playground Link:
http://www.typescriptlang.org/play/index.html?ts=3.7-Beta&ssl=3&ssc=2&pln=1&pc=1#code/HYQwtgpgzgDiDGEAEBzANgewEYjQFQAsBLKJAbwCglqkIAPGDAJwBckAzAV2HhaI2AcMGABQBKckngCoGNBAB0mFCIDkdVWIDcSAL4VdQA
Related Issues:
globalThis
indeclare global
block #33754 the stack trace looks different, though.The text was updated successfully, but these errors were encountered: