Skip to content

Skip block scope check for global symbol#16375

Merged
sandersn merged 2 commits into
masterfrom
skip-block-scope-for-global-symbol
Jun 22, 2017
Merged

Skip block scope check for global symbol#16375
sandersn merged 2 commits into
masterfrom
skip-block-scope-for-global-symbol

Conversation

@sandersn
Copy link
Copy Markdown
Member

@sandersn sandersn commented Jun 8, 2017

Skip block scope check for global symbols, which have no error location.
An example such of a symbol is Promise.
Fixes #15725

sandersn added 2 commits June 8, 2017 13:45
An example of a symbol with no error location is a global symbol like
Promise.
Previously, a block-scoped definition of Promise like `class Promise<T>` in
a script would cause a crash
Copy link
Copy Markdown
Contributor

@rbuckton rbuckton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also have @mhegazy chime in here.

@rbuckton rbuckton requested a review from mhegazy June 8, 2017 20:56
@sandersn
Copy link
Copy Markdown
Member Author

@rbuckton Since @mhegazy is out for the next couple of months, should we just go ahead and merge this one?

@aiiak
Copy link
Copy Markdown

aiiak commented Jun 22, 2017

Hi @rbuckton, @mhegazy ! Can you please merge this fix to master and to 2.4 or 2.4.1? We want to use 2.3 and 2.4 features but cannot move to new versions cause this issue is blocker for us.
Thanks!

@rbuckton
Copy link
Copy Markdown
Contributor

@sandersn, Can you port this to release-2.4?

@sandersn sandersn merged commit 6a11192 into master Jun 22, 2017
@sandersn
Copy link
Copy Markdown
Member Author

Done. It's in 2.4 now.

@mhegazy mhegazy deleted the skip-block-scope-for-global-symbol branch November 2, 2017 21:04
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
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.

4 participants