diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc index 823799a901ad83..ec46d67039c832 100644 --- a/src/js_native_api_v8.cc +++ b/src/js_native_api_v8.cc @@ -928,8 +928,7 @@ napi_define_class(napi_env env, tpl->PrototypeTemplate()->SetAccessorProperty(property_name, getter_tpl, setter_tpl, - attributes, - v8::AccessControl::DEFAULT); + attributes); } else if (p->method != nullptr) { v8::Local t; STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate(