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

Incorrect work #each with 'alert' as item name #3674

Closed
NikolayMakhonin opened this issue Oct 8, 2019 · 0 comments · Fixed by #3692
Closed

Incorrect work #each with 'alert' as item name #3674

NikolayMakhonin opened this issue Oct 8, 2019 · 0 comments · Fixed by #3692
Labels

Comments

@NikolayMakhonin
Copy link

NikolayMakhonin commented Oct 8, 2019

See this repl

This code:

{#each alerts as alert}
	<p>{alert}</p>
{/each}

display the system alert() function instead the alerts item:

function alert() { [native code] }
function alert() { [native code] }

Same problem with many system names such as window, document, history, ...

It turns out that many good variable names are banned, also that leads to implicit errors, because I expect that local variables will override the global

Server rendering works correctly, probably because there are no such global variables

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

Successfully merging a pull request may close this issue.

2 participants