Skip to content

Extract JSConverter into a JSConverter.h file #4488

Open

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

  1. ghost added
    Needs: Triage 🔍
    on Apr 3, 2020
  2. added and removed
    Needs: Triage 🔍
    on Apr 6, 2020
  3. ghost added
    Invalid Triage
    on Sep 15, 2020
  4. added and removed
    Invalid Triage
    on Sep 15, 2020
  5. added
    Workstream: Module Support
    on Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: Native ModulesCode CleanupWorkstream: Module Supportenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions