| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index c80162aa85e2333ff7db6f0552aa479c66da0a2c..78303c16f2dc55164fb882cbe89238831221dba9 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,
|
|
|