Skip to content

Docs: Clarification about symbols in getStaticValue #196

@kirkwaiblinger

Description

@kirkwaiblinger

I recently noticed that getStaticValue treats the result of Symbol.for() as a static value, but not the result of Symbol(). This does seem reasonable if you think about it, but it's not obvious at first glance from the docs that that would be the case. The behavior around global symbols is specifically called out, so I think this behavior around static symbols should be too.

Symbols are always confusing!

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