Skip to content

Use [caml_blit_string] for strings under jsoo - #196

Open
smuenzel wants to merge 1 commit into
janestreet:masterfrom
smuenzel:fix-js-string
Open

smuenzel wants to merge 1 commit into
janestreet:masterfrom
smuenzel:fix-js-string

Conversation

@smuenzel

@smuenzel smuenzel commented Sep 2, 2026

Copy link
Copy Markdown

When reading from OCaml strings under jsoo, handle the case when strings are represented as js strings properly.
Treating them as bytes leads to a crash:
"Cannot read properties of undefined (reading 'length')".

When reading from OCaml strings under jsoo, handle the case when
strings are represented as js strings properly.
Treating them as bytes leads to a crash:
"Cannot read properties of undefined (reading 'length')".

Signed-off-by: Stefan Muenzel <source@s.muenzel.net>
@smuenzel

smuenzel commented Sep 2, 2026

Copy link
Copy Markdown
Author

Original commit in port of base to 5.5: public-release-reloaded@2898ada

@github-iron github-iron added the forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system. label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants