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 serializing a number which is Infinity, the information is lost:
JSON.stringify(Infinity)// "null"
Expected behavior: the serialization should somehow serialize these special numeric values, so they can be revived correctly:
constaOriginal=Infinityconststringified=JSON.stringify(aOriginal)constaRevived=JSON.parse(stringified,math.json.reviver)// is null, should be Infinityassert.strictEqual(aOriginal,aRevived)// is false, should be true
When serializing a number which is
Infinity
, the information is lost:Expected behavior: the serialization should somehow serialize these special numeric values, so they can be revived correctly:
Ref: #27 (comment)
The text was updated successfully, but these errors were encountered: