Skip to content

Crash when exporting globalThis in declare global block #33754

Closed
@falsandtru

Description

@falsandtru

TypeScript Version: 3.4.0-dev.201xxxxx

Search Terms:

Code

declare global {
  export { globalThis as global };
}

Expected behavior:

pass

Actual behavior:

$ node built/local/tsc --noEmit index.ts
...\TypeScript\built\local\tsc.js:94648
                throw e;
                ^

TypeError: Cannot read property '0' of undefined

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions