| Index: src/api.cc
 | 
| diff --git a/src/api.cc b/src/api.cc
 | 
| index 11d1922bbccb58b7bd69fccf09e743569ca1663f..fb72fc9196cb363910656a895a37f41a9be07fe8 100644
 | 
| --- a/src/api.cc
 | 
| +++ b/src/api.cc
 | 
| @@ -877,7 +877,6 @@ static void InitializeFunctionTemplate(
 | 
|        i::Handle<i::FunctionTemplateInfo> info) {
 | 
|    info->set_tag(i::Smi::FromInt(Consts::FUNCTION_TEMPLATE));
 | 
|    info->set_flag(0);
 | 
| -  info->set_prototype_attributes(i::Smi::FromInt(v8::None));
 | 
|  }
 | 
|  
 | 
|  
 | 
| @@ -1100,14 +1099,13 @@ void FunctionTemplate::SetHiddenPrototype(bool value) {
 | 
|  }
 | 
|  
 | 
|  
 | 
| -void FunctionTemplate::SetPrototypeAttributes(int attributes) {
 | 
| +void FunctionTemplate::ReadOnlyPrototype() {
 | 
|    i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
 | 
|    if (IsDeadCheck(isolate, "v8::FunctionTemplate::SetPrototypeAttributes()")) {
 | 
|      return;
 | 
|    }
 | 
|    ENTER_V8(isolate);
 | 
| -  Utils::OpenHandle(this)->set_prototype_attributes(
 | 
| -      i::Smi::FromInt(attributes));
 | 
| +  Utils::OpenHandle(this)->set_read_only_prototype(true);
 | 
|  }
 | 
|  
 | 
|  
 | 
| 
 |