Skip to content
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

only add list/index to each block context if necessary #1383

Merged
merged 3 commits into from
Oct 28, 2018
Merged

Conversation

Rich-Harris
Copy link
Member

I think it probably makes sense to implement real destructuring before tackling this

@Rich-Harris Rich-Harris changed the title [WIP] failing test for #1187 only add list/index to each block context if necessary Oct 28, 2018
@Rich-Harris
Copy link
Member Author

This doesn't check whether each block names are actually used or not, it just removes the implicit list/index properties from the context if there's no binding (and no explicit index variable is declared). That's probably good enough, for now at least. Most apps will get slightly smaller because of this.

@Rich-Harris Rich-Harris merged commit 0d881ee into master Oct 28, 2018
@Rich-Harris Rich-Harris deleted the gh-1187-b branch October 28, 2018 15:21
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.

1 participant