| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index c2976a577a1a035749f25dd95c97bdf8fbba9af7..4b515fb1b5bcba75fa1b63409600f256e5fb370f 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -751,7 +751,10 @@ Handle<JSFunction> Factory::NewFunctionWithPrototype(Handle<String> name,
|
| // property that refers to the function.
|
| SetPrototypeProperty(function, prototype);
|
| // Currently safe because it is only invoked from Genesis.
|
| - SetLocalPropertyNoThrow(prototype, constructor_symbol(), function, DONT_ENUM);
|
| + CHECK_NOT_EMPTY_HANDLE(isolate(),
|
| + JSObject::SetLocalPropertyIgnoreAttributes(
|
| + prototype, constructor_symbol(),
|
| + function, DONT_ENUM));
|
| return function;
|
| }
|
|
|
|
|