possible excessive proxy invariants for Object.keys/etc??

Brandon Benvie brandon at brandonbenvie.com
Tue Nov 20 15:16:45 PST 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121120/2ff94b11/attachment.html>


More information about the es-discuss mailing list