Comment #4 on issue 12871 by gerryewan: Properties that are added to a
function object are ignored.
http://code.google.com/p/chromium/issues/detail?id=12871
<html>
<body>
<script>
var foo = function() { };
foo.prototype.name = 5;
var bar = new foo();
foo.name = foo.prototype.name + 7;
alert("proto name:" + foo.prototype.name + " name:" + foo.name + "
bar name:" +
bar.name);
</script>
</body>
</html>
expected results: proto name: 5 name: 12 bar name: 5
actual results: proto name: 5 name: bar name: 5
so, if the results are stored in the prototype of the function, it's ok.
if not,
it's screwed.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---