Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Clarification about symbols in getStaticValue #196

Open
kirkwaiblinger opened this issue Feb 6, 2024 · 0 comments
Open

Docs: Clarification about symbols in getStaticValue #196

kirkwaiblinger opened this issue Feb 6, 2024 · 0 comments

Comments

@kirkwaiblinger
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant