Skip to content

Conversation

@sandersn
Copy link
Member

@sandersn sandersn commented Oct 15, 2019

Fixes #33754
Fixes #33756

find-all-refs assumed that an export inside a `declare x` was always an
ambient module, but it is not -- `declare global` does not allow
`export`, so find-all-refs shouldn't return any refs for this error case.
@sandersn sandersn merged commit 29f9493 into master Oct 15, 2019
@sandersn sandersn deleted the fix-globalthis-export-alias-global-crash branch October 15, 2019 21:05
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failure with globalThis in declare global block Crash when exporting globalThis in declare global block

3 participants