-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce TDZ within initializer of lexical declaration (refactored) (#…
…2733) * [[FIX]] Enforce TDZ within initializer of lexical declaration Fixes #2637 * [[FIX]] Enforce TDZ within class heritage definition * [[FIX]] Enforce TDZ within for in/of head Fixes gh-2693 * [[CHORE]] Refactor var initialization tracking Conceptually, the initialization state of a given variable is a property of that variable. Model that relationship in the code organization by tracking variable initialization using a dedicated property on the representation of the variable itself. Beyond improving code clarity (the "label" objects remain the single source of truth for the state of each variable), this also reduces memory allocation costs (no new objects need to be created).
- Loading branch information
1 parent
f7eb3d7
commit 8e9d406
Showing
4 changed files
with
154 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters