Skip to content

Decoding strings recklessly #57

@bedeho

Description

@bedeho

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

  • NaN
  • null
    etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions