2014-11-12 20:37 GMT+01:00 Kevin Smith <[email protected]>: > In general, it appears that SM unwraps proxies so that internal slot > access is transparently forwarded. I don't see any such unwrapping in the > ES spec though. I assume that the spec is correct? >
This auto-unwrapping for internal slots used to be part of an early iteration of direct proxies < http://wiki.ecmascript.org/doku.php?id=harmony:direct_proxies#wrapping_irregular_objects> but was not carried over into the ES6 spec. IIRC, mainly because just forwarding any internal slot access endangers the encapsulation properties of membrane-like use cases.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

