Skip to content

should there be a GovernorToken constructor/prototype? #19

@michaelficarra

Description

@michaelficarra

Currently, I don't see much use for it. Depending on how we go with #17, we may want something like

release() {
  this[Symbol.dispose]()
}

on it for convenience, but I don't know what else we'd do with it. I fear that if we don't have a built-in prototype and wanted to add a prototype later, it would not only be an observable change, but there's also be a lot of code that creates tokens that abide by the disposal protocol but do not inherit from the built-in prototype (because they predate it). Should we have a prototype even if there's nothing really on it?

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