Skip to content

[BUG] calling List.sort triggers a "TypeError: r is not a function" (JS error) #1007

Closed
@sebferre

Description

@sebferre

Describe the bug
When calling function List.sort from the standard library, a JS error is triggered.
It displays as: TypeError: r is not a function
(the name of the function varies)

A call as simple as the following is enough.
List.sort (fun x y -> compare y x) [4;2;5;2;1]

The bug disappears when I call my own naive implementation of List.sort (Quicksort).

Versions
Version of packages used to reproduce the bug
ocamlc 4.09.1
js_of_ocaml 3.5.2
opam 2.0.6

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