possible excessive proxy invariants for Object.keys/etc??
allen at wirfs-brock.com
Tue Nov 20 16:08:06 PST 2012
On Nov 20, 2012, at 3:16 PM, Brandon Benvie wrote:
> In regards to the non-configurable/extensible issue, the issue is that the proxy still needs to be *notified* of what's happening, but it's not really allowed to *trap* because the result is predetermined. Currently this is handled by treating it like a normal trap activation with extra limitations on the return result. Skipping the trap entirely and returning the result is undesirable because the notification is still important even when the result can't be influenced.
> The ideal result would be for the the trap to be called normally but as a notification rather than as a request for something to happen/a return value. That way a handler that needs side effects to happen can still make sure they do, but there's no need to conjure up descriptors or reflect actions where the result is predetermined.
right, I just made what I think is an equivalent suggestion in a new replay to Tom's last message.
More information about the es-discuss