Closed acutmore closed 2 years ago
It is my understanding that for forward web compatibility we would prefer to actually name the exposed predicate something like
isUnforgeable
.
Thanks @rricard - good point that this was still being discussed. I've created an issue https://github.com/tc39/proposal-symbols-as-weakmap-keys/issues/24
Based on the most recently conversations in the Record & Tuple monthly call - I have updated the PR:
WeakMap.isValidKey
)CanBeHeldWeakly
AO to also return true for well-known symbols by only returning false for symbols that are registered.also return true for well-known symbols by only returning false for symbols that are registered.
@acutmore I’d thought about this (way too much) and came to the same conclusion, but wasn’t confident about my ability to articulate the case coherently. It’s really cool to see that this is where you’ve landed!
Made a start on what the spec text changes could be if registered and well-known symbols were not allowed in
WeakMap
,WeakSet
,WeakRef
andFinalizationRegistry
Closes #21