When server is sending string representation of a number variable it was parsed from Var.cacheComputedValues() and set to numberValue but value member was never initialised and remains the string representation.
This PR is fixing that behaviour and when the defaultValue is representing Number object we try to set the correct Number instance in the value member.
Background
When server is sending string representation of a number variable it was parsed from
Var.cacheComputedValues()
and set tonumberValue
butvalue
member was never initialised and remains the string representation. This PR is fixing that behaviour and when thedefaultValue
is representing Number object we try to set the correct Number instance in thevalue
member.There is another #379 fixing similar issue.