Skip to content

Support empty string as a valid key in a Js.t object #3494

Closed
@nireno

Description

@nireno

Defining a Js.t object such as let obj = {"": someValue}; throws the following for me:

Fatal error: exception File "lam_methname.ml", line 135, characters 2-8: Assertion failed
File "", line 1:
Error: Error while running external preprocessor

I encountered the problem while trying to define an xstate transient transition which gives special meaning to the empty string key.

Side note: Putting the Js.t example above on the "Try Reason" website currently causes the site to completely crash.

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