Skip to content

Add used-before-declaration errors for class refs inside computed names#23784

Merged
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:clase-computed-name-tdz
Apr 30, 2018
Merged

Add used-before-declaration errors for class refs inside computed names#23784
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:clase-computed-name-tdz

Conversation

@weswigham
Copy link
Copy Markdown
Member

Fixes #23737
Fixes #23736

As pointed out in #23737, a class has not yet been constructed during the evaluation of its computed property names, so referencing it within them should be an error.

@weswigham weswigham requested review from mhegazy and rbuckton April 30, 2018 19:23
@weswigham weswigham merged commit 0c244d8 into microsoft:master Apr 30, 2018
@weswigham weswigham deleted the clase-computed-name-tdz branch April 30, 2018 19:55
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 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.

2 participants