Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 3fe5621703ef3ca04f8f6af312ece30c318a883b..f8a7dfa1f9984f7218a612f917d090679017845c 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -884,6 +884,7 @@ 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)); |
} |
@@ -1106,6 +1107,17 @@ void FunctionTemplate::SetHiddenPrototype(bool value) { |
} |
+void FunctionTemplate::SetPrototypeAttributes(int attributes) { |
+ 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)); |
+} |
+ |
+ |
void FunctionTemplate::SetNamedInstancePropertyHandler( |
NamedPropertyGetter getter, |
NamedPropertySetter setter, |