Proxies as prototypes
Axel Rauschmayer
axel at rauschma.de
Sat Nov 22 22:41:51 PST 2014
I’d expect the following code to log `GET bla`, but it currently doesn’t in Firefox. That’s because the Firefox implementation of proxies isn’t finished yet, right?
```js
var proto = new Proxy({}, {
get: function(target, propertyKey, receiver) {
console.log('GET '+propertyKey);
return target[propertyKey];
}
});
var obj = Object.create(proto);
obj.bla;
```
--
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141123/f2925e40/attachment.html>
More information about the es-discuss
mailing list