Status: New
Owner: ----

New issue 398 by ernst.matthias: Overwriting function-valued property of  
first ObjectTemplate instance gives "undefined" on clones
http://code.google.com/p/v8/issues/detail?id=398

Something weird with templates, functions and cloning: I create an object
template and give it a function as property. I instantiate the template
once and clone the result. I overwrite the property of the instance and the
property of its clone becomes undefined, and vice versa.

This only happens:
* for the first instance of the template
* if the property set on the template is a function

Reproducible w/ tr...@1682 and @2249.

Test attached. It should print:
instance: function() { ...
clone: function() { ...
instance: replacement
clone: function() { ...

It does print:
instance: function() { ...
clone: function() { ...
instance: replacement
clone: undefined <*******


Attachments:
        method-lookup_test.cc  1.3 KB

--
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

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

Reply via email to