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
It seems like x2 is composed of vanilla Javascript objects rather than nodes. Omitting the reviver completely achieves the same result, as demonstrated with underscore.
Thanks for reporting, nodes are indeed not supported in serialization/deserialization. We should definitely add this. Same holds for the ResultSet class I think (result of multi line expressions like math.eval("a=1\nb=2").
EDIT: I see ResultSet already supports serialization, so it's just the nodes that we need to extend (I'm working on it).
The JSON reviver math.json.reviver is not deserializing nodes correctly.
Example:
It seems like x2 is composed of vanilla Javascript objects rather than nodes. Omitting the reviver completely achieves the same result, as demonstrated with underscore.
The text was updated successfully, but these errors were encountered: