-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Describe the bug
When using $state
ful BigInt
s, I've encountered some weird bugs. I've found that there's some issues with these values when they are retrieved in different ways, such as:
- Template effects always seem to work correctly with
$state
BigInts
([1]), but... - Using these values as they are (without putting it in an array or calling
.toString()
on it) results in odd behavior, sometimes it shows an outdated value or a value greater than what it ever has been [1][2] - Using these values in an array or in a method results in correct behavior (sometimes) [3]
Additionally, the compiler compiles ++
to +=1
(or (foo+=1)-1
), and --
to -=1
(or (foo-=1)+1
), which can result in some very ugly bugs. [4]
Reproduction
Logs
No response
System Info
N/A
Severity
more than annoyance
Metadata
Metadata
Assignees
Labels
No labels