Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date is returned as an empty Map to Dart #44

Open
Matthiee opened this issue Jun 17, 2024 · 0 comments
Open

Date is returned as an empty Map to Dart #44

Matthiee opened this issue Jun 17, 2024 · 0 comments

Comments

@Matthiee
Copy link

Matthiee commented Jun 17, 2024

Given the following script:

final result = qjs.eval('new Date()');

// result = Map (0 items)

It should be (un)marshalled using the https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime

quickjs-emscripten-sync does it as follows:

https://github.com/reearth/quickjs-emscripten-sync/blob/5936622195290bf051d0aa691012e0f443aebf33/src/unmarshal/custom.ts#L25-L29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant