Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
dev-platform@mozilla.org
Conversations
About
Intent to prototype: Symbols as WeakMap keys (ECMA 262)
60 views
Skip to first unread message
Yoshi Cheng-Hao Huang
unread,
Sep 27, 2023, 9:30:15 AM
9/27/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@mozilla.org
Summary:
This proposal allows Symbols can be used as keys in WeakMap/WeakSet, and as the target in WeakRef/FinalizationRegistry
Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1828144
Standards body:
https://tc39.es/proposal-symbols-as-weakmap-keys/
This proposal has been merged into ecma262
https://tc39.es/ecma262/multipage/executable-code-and-execution-contexts.html#sec-canbeheldweakly
Platform
coverage:
All
Preference:
N/A yet
Other browsers:
Chrome has shipped this since 108 behind the flag
"--harmony-symbol-as-weakmap-key"
https://groups.google.com/a/chromium.org/g/blink-dev/c/E6pDZP_TiBA/m/ZcXLwiz8AAAJ
and has been enabled by default since April 2023
https://chromium.googlesource.com/v8/v8/+/71ff68830279b7ad6719db066b21f0489e871596
Safari has shipped this since 16.4
https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes
web-platform-tests:
Tests are located in in test262/
https://github.com/tc39/test262/pull/3678
Reply all
Reply to author
Forward
0 new messages