Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index eb2ffcff18094e3e3b2fe37c4a1dbe7276ea9e97..634d422ff301a430eaab46c585bd02a353ba0a51 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1407,6 +1407,17 @@ void FunctionTemplate::ReadOnlyPrototype() { |
Utils::OpenHandle(this)->set_read_only_prototype(true); |
} |
+ |
+void FunctionTemplate::RemovePrototype() { |
+ i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
+ if (IsDeadCheck(isolate, "v8::FunctionTemplate::RemovePrototype()")) { |
+ return; |
+ } |
+ ENTER_V8(isolate); |
+ Utils::OpenHandle(this)->set_remove_prototype(true); |
+} |
+ |
+ |
template< |
typename Getter, |
typename Setter, |