Skip to content

Fix crash when exporting+aliasing globalThis inside declare global #34408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 15, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
2 participants