You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scottkgaran
changed the title
passing a complex object from js to go function does not marshal all fields
passing a complex object from js to go function does not unmarshal all fields
Oct 30, 2024
Brief summary
Hi all, I am currently writing a k6 extension.
I am trying to pass a "complex" object from js to my go function. But for some reason I do not get back all the fields on the go side.
I have noticed this with structs within structs as well as type alias's.
Happy to create a repro repo if needed.
k6 version
latest, master
OS
windows wsl (arch)
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Do the same thing using sobek runtime directly (via test):
example:
Expected behaviour
we should be able to unmarshal objects properly like vanilla sobek can.
Actual behaviour
struct does not contain the field data:
The text was updated successfully, but these errors were encountered: