Skip to content

Cannot use keyword as Javascript method name #457

Closed
@abhirmathur

Description

@abhirmathur

Using a keyword such as "then" as an object's method name is not supported.

For example,

let p = new_promise() in p##catch_(fun reason -> reason)

will compile to

p.$$catch(function (reason) { return reason; });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions