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
This was broken by #3394. There are a few places in the code where we're looking at the precedence of the top-level operator in an expression and deciding whether we need to wrap it in parentheses, but simplest would be to just always wrap it.
I don't know whether this would be affected or fixed by #3539.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Trying to compare two numbers inline in HTML code blocks causes incorrect code to be generated, resulting in incorrect results.
{1 === 1}
shows as false.To Reproduce
https://svelte.dev/repl/60c43a6dd4ec4d7a8d1337342a48695b?version=3.12.1
Or try
{1 === 1}
in your code.Expected behavior
(1 === 1) === true
Output is:
and should be something like:
Information about your Svelte project:
Severity
This doesn't block, but is severe, since any such comparisons made will be wrong, and this could break a number of pre-existing components.
The text was updated successfully, but these errors were encountered: