Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Breaking: remove TDZScope (refs eslint/eslint#10245) #35

Merged
merged 1 commit into from
Apr 28, 2018

Conversation

mysticatea
Copy link
Member

@mysticatea mysticatea commented Apr 26, 2018

Refs eslint/eslint#10245.

This PR removes TDZScope class.
eslint-scope package should not make TDZ scopes because this is static analyzer and Temporal Dead Zone is a timing matter.

As results:

  • for-in/for-of statements no longer make TDZ scopes.
  • The references in ForInStatement#right and ForOfStatement#right are in the correct place now.

I confirmed that eslint doesn't need any fix for this change (eslint/eslint#10270).

@JamesHenry
Copy link
Member

JamesHenry commented Apr 26, 2018

Worth double-checking https://github.com/babel/babel-eslint too?

Copy link
Member

@not-an-aardvark not-an-aardvark left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants