Open Matthiee opened 4 months ago
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:
quickjs-emscripten-sync
https://github.com/reearth/quickjs-emscripten-sync/blob/5936622195290bf051d0aa691012e0f443aebf33/src/unmarshal/custom.ts#L25-L29
Given the following script:
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