Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index f88ebda53d117dfd5b283b513f7743824f1d408c..87c0f549c2bbae5192b31c192486771c9019fee0 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -2924,9 +2924,8 @@ MaybeObject* Heap::AllocateFunctionPrototype(JSFunction* function) { |
// constructor to the function. |
Object* result; |
{ MaybeObject* maybe_result = |
- JSObject::cast(prototype)->SetProperty(constructor_symbol(), |
- function, |
- DONT_ENUM); |
+ JSObject::cast(prototype)->SetLocalPropertyIgnoreAttributes( |
+ constructor_symbol(), function, DONT_ENUM); |
if (!maybe_result->ToObject(&result)) return maybe_result; |
} |
return prototype; |