Skip to content

[BUG] Marshal.to_string 3.14 [] raises Failure #958

@kenichi-asai

Description

@kenichi-asai
let str = Marshal.to_string 3. []
let len = String.length str
let _ = print_endline (string_of_int len)

The above program runs fine but replacing 3. with 3.14 produces 0,248,Failure,-3,output_value: abstract value (number) on Safari. Is this a bug?

ocamlc 4.04.0, js_of_ocaml 3.5.2, Safari 12.1.2 on macOS Sierra

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