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
When compiling foo++ and bar-- statements (assuming that foo and bar are $states), Svelte assumes that foo and bar are numbers, and compiles it to $.update(foo) and $.update(bar, -1). However, if foo or bar are BigInts, this causes an error because numbers and BigInts cannot be mixed together without type conversion.
I have a PR ready for this.
Describe the bug
When compiling
foo++
andbar--
statements (assuming thatfoo
andbar
are$state
s), Svelte assumes thatfoo
andbar
are numbers, and compiles it to$.update(foo)
and$.update(bar, -1)
. However, iffoo
orbar
areBigInt
s, this causes an error because numbers andBigInt
s cannot be mixed together without type conversion.I have a PR ready for this.
Reproduction
REPL
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: