| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index bf726784665b31f9773c4b0815108299332a24bc..320aa989260ae89ad49c1c0a78a0776cddd61f7f 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -953,6 +953,7 @@ static Local<FunctionTemplate> FunctionTemplateNew(
|
| obj->set_length(length);
|
| obj->set_undetectable(false);
|
| obj->set_needs_access_check(false);
|
| + obj->set_accept_any_receiver(true);
|
| if (!signature.IsEmpty())
|
| obj->set_signature(*Utils::OpenHandle(*signature));
|
| return Utils::ToLocal(obj);
|
| @@ -1126,6 +1127,15 @@ void FunctionTemplate::SetClassName(Handle<String> name) {
|
| }
|
|
|
|
|
| +void FunctionTemplate::SetAcceptAnyReceiver(bool value) {
|
| + auto info = Utils::OpenHandle(this);
|
| + EnsureNotInstantiated(info, "v8::FunctionTemplate::SetAcceptAnyReceiver");
|
| + auto isolate = info->GetIsolate();
|
| + ENTER_V8(isolate);
|
| + info->set_accept_any_receiver(value);
|
| +}
|
| +
|
| +
|
| void FunctionTemplate::SetHiddenPrototype(bool value) {
|
| auto info = Utils::OpenHandle(this);
|
| EnsureNotInstantiated(info, "v8::FunctionTemplate::SetHiddenPrototype");
|
|
|