-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The macro for doing string decoding currently turns undefined into the string "undefined". While this is actually what javascript does natively, it is happening in contexts where this is not what is intended. One example is the url key of the add_torrent_params.
The best approach is likely to keep the core decoding macro compatible with the javascript approach, and to make the context specific decoding more intelligent. E.g. the add_torrent_params::url should be set to a default constructed std::string.
Also check what happens of other special javascript types like
NaNnull
etc.