Skip to content

Bindings where @scope has same name as module can result in runtime errors #7478

Description

@mediremi

When a binding's @scope has the same name as a module, the binding's scope is shadowed by the module:

module URL = {  
  @val @scope("URL")
  external revokeObjectURL: string => unit = "revokeObjectURL"
}

URL.revokeObjectURL("some url")
let URL = {};

URL.revokeObjectURL("some url");

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