Skip to content

Extract JSConverter into a JSConverter.h file #4488

Description

The JSConverter is added for value conversion in JSValue.cpp. The JSValueReader and JSValueWriter also need to do similar conversions, but currently they use different algorithms. It would beneficial that all conversions are done uniformly between these classes. E.g. there is special logic how to convert NaN to a string.
The change will require to move the JSConverter implementation into its own header file JSConverter.h and change JSValue, JSValueReader, and JSValueWriter to use this new class.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions