Skip to content

[BUG] exception Invalid_argument("Bytes.create") raised by input_line and input_char with 6.0.1 #1856

@esope

Description

@esope

Describe the bug
I have an example program that calls input_line or input_char, for which the generated code works correctly with version 5.9.1, but raises the exception Invalid_argument("Bytes.create") with version 6.0.1.
The input_* are on a channel created by open_in, that reads from a filesystem created by js_of_ocaml buildfs.

Expected behavior
The line/char should be read, and no Invalid_argument should be raised.

Versions
ocamlc: 4.14.1
js_of_ocaml: 6.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions