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

feature request: add an ability to work with utf16 string representation from Go #321

Closed
ilyapashuk opened this issue Aug 9, 2021 · 3 comments

Comments

@ilyapashuk
Copy link

hello

when I'm sending string value to js or getting it from js function, it is converted to or from utf16.

please add a new type "JavascriptString []byte" to make it possible to directly pass such utf16 strings between runtimes.

@dop251
Copy link
Owner

dop251 commented Aug 9, 2021

Hi. You can pass immutable Value between runtimes (essentially everything except *Object).

@ilyapashuk
Copy link
Author

may be it will be usefull to document this?
without documentation this is an undocumented part of api that may change in future, because now documentation says that values can not be passed between runtimes at all.

@dop251
Copy link
Owner

dop251 commented Aug 10, 2021

Certainly. Please clarify which bit of the documentation got you confused.

@dop251 dop251 closed this as completed in c933cf9 Aug 6, 2023
Gabri3l pushed a commit to Gabri3l/goja that referenced this issue Sep 20, 2023
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

2 participants