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

Specify when a symbol is shared #33295

Merged
merged 2 commits into from Apr 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -113,7 +113,7 @@ The static properties are all well-known Symbols. In these Symbols' descriptions
## Static methods

- {{jsxref("Symbol.for()")}}
- : Searches for existing Symbols with the given `key` and returns it if found. Otherwise a new Symbol gets created in the global Symbol registry with `key`.
- : Searches for existing shared Symbols in the global Symbol registry with the given `key` and returns it if found. Otherwise a new shared Symbol gets created in the global Symbol registry with `key`.
Josh-Cena marked this conversation as resolved.
Show resolved Hide resolved
- {{jsxref("Symbol.keyFor()")}}
- : Retrieves a shared Symbol key from the global Symbol registry for the given Symbol.

Expand Down