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

fix dev mode each block validation when using strings #4451

Merged
merged 3 commits into from
Feb 23, 2020

Conversation

Conduitry
Copy link
Member

Fixes #4450. 'length' in str is a runtime error, so we now check whether it's a string or a truthy object with a length key. I can't think of a case where we might want to allow another value type, like function for example.

@Conduitry Conduitry merged commit 138213c into sveltejs:master Feb 23, 2020
@Conduitry Conduitry deleted the gh-4450 branch February 23, 2020 21:35
@swyxio
Copy link
Contributor

swyxio commented Feb 24, 2020

ay sorry about that i didnt even know people would use strings there. good reason to add it to the test suite!

jesseskinner pushed a commit to jesseskinner/svelte that referenced this pull request Feb 27, 2020
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
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.

Dev mode {#each} check breaks with strings
2 participants