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
As in #1057, I expect this also happens on Json.Decode.Values—I can demonstrate it in my production code but Json.Encode.Value was simpler to make into an SSCCE.
I expected this to print "False" but it crashed instead.
It appears that _Utils_eqHelp checks if either value is null but not if they are undefined. Then it tries to access a value like undefined[field], which raises an exception.
The text was updated successfully, but these errors were encountered:
Equality is not supported for Json.Encode.Values for a variety of reasons. I talk about that a bit in #1057. It can also crash if the value contains a function. The long term fix is that "trying to use equality on JS values should be a type error".
As in #1057, I expect this also happens on
Json.Decode.Values
—I can demonstrate it in my production code butJson.Encode.Value
was simpler to make into an SSCCE.Code on Ellie (reproduced below):
I expected this to print "False" but it crashed instead.
It appears that
_Utils_eqHelp
checks if either value isnull
but not if they areundefined
. Then it tries to access a value likeundefined[field]
, which raises an exception.The text was updated successfully, but these errors were encountered: