Updates:
Summary: Functions 'prototype' observable as accessor property
Status: Accepted
Cc: [email protected] [email protected]
Labels: Type-Bug Priority-Medium OS-All
Comment #2 on issue 2426 by [email protected]: Functions 'prototype'
observable as accessor property
http://code.google.com/p/v8/issues/detail?id=2426
Here is a shorter repro for the core problem:
function f() {}
var o = {__proto__: f}
o.prototype = {boo: 666}
f.prototype.boo // 666
Apparently, we observably treat .prototype on a function as an accessor
property, which causes the assignment in the third line to replace
f.prototype instead of creating an own property on o.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev