Re: [WICG/webcomponents] Observable Properties (Issue #951)

Re option 2, Proxy exotic objects on their own cannot exhibit the characteristics you’re looking for (i.e., by design — this is very fundamental for a variety of reasons, including proxy’s own core use cases). Membranes can, though that’s unlikely to be worthwhile here. The “monkey patching” in “option 3” is effectively equiv to part of what a membrane entails.

(Side note: @@hasInstance is implemented by the RHS operand, not the left. If providing a custom impl in a class body, it’d be a static method.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/951#issuecomment-1008209359

You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/951/1008209359@github.com>

Received on Sunday, 9 January 2022 01:43:04 UTC