flutter_js icon indicating copy to clipboard operation
flutter_js copied to clipboard

QuickJS and JavaScriptCore behave inconsistently.

Open widealpha opened this issue 1 year ago • 2 comments

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

widealpha avatar Dec 06 '23 07:12 widealpha

Could be fixed. Are you able to submit a PR? I would review it.

abner avatar Jun 07 '24 07:06 abner

I have submitted a PR #152. I think this is a break change.

widealpha avatar Jun 07 '24 12:06 widealpha