On 21 March 2012 21:00, Alex Vincent <[email protected]> wrote: > https://www.alexvincent.us/temp/ProxyCtor/V8-SpiderMonkey-test.html > > I reduced the testcase quite severely. It's a combination between Proxy > and WeakMap. I store the proxy as a key for the WeakMap, and then expect > to get back that proxy through Object.getPrototypeOf.
Thanks, that helped. I reduced it further and made it into a V8 bug, see: http://code.google.com/p/v8/issues/detail?id=2021 In particular, it has nothing to do with weak maps, only with setting a function.prototype property to a proxy. A fix is on the way ( http://codereview.chromium.org/9837008/). In the meantime, as a workaround you could create your object with Object.create instead of using a constructor function. Sorry for the inconvenience! /Andreas
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

