Comment #11 on issue 1543 by [email protected]: Implement Proxy proposal
http://code.google.com/p/v8/issues/detail?id=1543

Regarding comment #10, perhaps it might be useful to see a little more detail on what cases fail.

Given a proxy "proxy" with a "set" trap, only the "PASS" marked expressions of the following cases cause the "set" trap to be triggered. The "FAIL" marked expressions somehow do *not* make the "set" trap get triggered.

    var key = "foo";

    proxy.foo = "bar";         // PASS
    proxy["foo"] = "bar";      // PASS
    proxy["foo" + ""] = "bar"; // *FAIL*
    proxy[key] = "bar";        // *FAIL*
    proxy[123] = "bar";        // *FAIL*
    proxy["123"] = "bar";      // *FAIL*
    proxy["123foo"] = "bar";   // PASS

Does anyone know whether this behaviour is buggy or intended?

Attachments:
        proxy_bug_tests.js  614 bytes

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to