Skip to content

QuickJS and JavaScriptCore behave inconsistently. #143

Description

@widealpha

Is there a way to remove the JSON.stringify method from handle_promise.dart, specifically from JSON.stringify(FLUTTER_NATIVEJS_PENDING_PROMISES[$idxPromise].getValue())(line 153-155)?
When I return a JSON string from the native side, using JavaScriptCore results in double-serialization, causing inconsistency with QuickJs return values. Is there a specific reason for this design?
image

version: flutter_js: ^0.8.0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions