Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 2021 by [email protected]: Harmony Proxies: lost prototype
http://code.google.com/p/v8/issues/detail?id=2021

The following program prints "false true" when it should print "true false". It works when C.prototype is simply set to {}.

-----------------------------------------------------
function C() {};
C.prototype = Proxy.create({});

var o = new C;
var p = Object.getPrototypeOf(o);
print(p === C.prototype, p === Object.prototype);
-----------------------------------------------------

Using o.__proto__ has the same effect.

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

Reply via email to