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

Enquire about return_value of RunUint8Array #27

Closed
tpmccallum opened this issue Jul 13, 2020 · 1 comment
Closed

Enquire about return_value of RunUint8Array #27

tpmccallum opened this issue Jul 13, 2020 · 1 comment

Comments

@tpmccallum
Copy link
Contributor

When the vm.RunUint8Array runs in conjunction with a callback [1], we need to decide how the return_value (which is given directly from SSVM execution) is packaged up in readiness for the callback.

Reason being, the callback object is always a JSON string. Therefore the return_value needs to be converted from it's native byte array to Array / String in the JSON and then potentially back again depending on the incoming Content-Type of the callback.

[1] https://github.com/second-state/wasm-joey/blob/master/src/server.js#L407

@tpmccallum
Copy link
Contributor Author

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