Chromium Code Reviews| Index: src/accessors.cc |
| =================================================================== |
| --- src/accessors.cc (revision 6865) |
| +++ src/accessors.cc (working copy) |
| @@ -467,6 +467,7 @@ |
| bool found_it = false; |
| JSFunction* function = FindInPrototypeChain<JSFunction>(object, &found_it); |
| if (!found_it) return Heap::undefined_value(); |
| + if (!function->should_have_prototype()) return Heap::undefined_value(); |
|
Mads Ager (chromium)
2011/02/21 14:10:51
Does the return value here have any significance?
|
| if (function->has_initial_map()) { |
| // If the function has allocated the initial map |
| // replace it with a copy containing the new prototype. |