You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An equivalent bug seems to be currently present in that branch. I'm getting an error about reducing an empty array here, but at least a compile-time exception is better than generating invalid code.
Describe the bug
For
or alternatively
Svelte generates code like
if ((show_if == null) || ) show_if = !!(bar())
.To Reproduce
Compile the above, and look at the invalid code that's generated.
Expected behavior
Presumably the
||
part just shouldn't be there, but I haven't checked whether that code would do what is expected.Information about your Svelte project:
Svelte 3.12.1
Severity
Medium-low-ish, probably. This seems to occur in a fairly specific situation.
Additional context
Quite possibly this will be fixed by #3539, but I wanted a record of this repro anyway.
The text was updated successfully, but these errors were encountered: