You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
The spec says it just looks for WeakRef fields on the instance, which are the same as the WeakCell fields. Therefore it would just work on a WeakCell. Is that acceptable? If not, we need to change how the parent and child classes are defined. (from @bmeck)
The text was updated successfully, but these errors were encountered:
In my polyfill I have a brand check to make deref only work for WeakRef, not WeakCell. Without such a check WeakCell wouldn't make all that much sense, I think.
Indeed, I’d think WeakRef would need a second internal slot, and then it and WeakCell would share the first one, and most methods would need to brand check the appropriate slot.
The current specification and explainer does not maintain the distinction between WeakRef and WeakCell. Closing, as this issue no longer seems relevant.
The spec says it just looks for
WeakRef
fields on the instance, which are the same as theWeakCell
fields. Therefore it would just work on aWeakCell
. Is that acceptable? If not, we need to change how the parent and child classes are defined. (from @bmeck)The text was updated successfully, but these errors were encountered: