Status: New
Owner: ----
New issue 2182 by [email protected]: Set trap not tripped on proxies
that are subject of with-block
http://code.google.com/p/v8/issues/detail?id=2182
When a harmony proxy object is used as the subject of a with block, its set
trap is not tripped when necessary. Example code:
var o = Object.create({foo: 0});
var proxy = Proxy.create(makeForwardingHandler(o));
with (proxy) {
foo = 42; // trips the getPropertyDescriptor(foo) trap twice, but NOT the
set trap
}
alert(proxy.foo); // prints 0 instead of 42
Fails in Chrome 21.0.1171.0 dev (v8 trunk@11689), passes in Firefox 13.0.
Full example code attached.
Attachments:
v8-proxy-with-bug.html 3.5 KB
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev