Skip to content

ReScript 12 compatibility #78

Closed
@cknitt

Description

@cknitt

When compiled with ReScript 12, the current Interop for the navigator modules as implemented in

export function adaptNavigatorModule(m) {
crashes at runtime with

TypeError: Cannot read property 'make' of undefined

This is because it relies on undocumented internals of ReScript 11, specifically that Navigator and Screen are treated as reserved words and therefore prefixed with$$ in the JS output (but Group isn't).

In ReScript 12, this behavior changed with rescript-lang/rescript#6831, and Navigator and Screen are no longer prefixed.

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