diff --git a/doc/object.md b/doc/object.md index 3ce7f75eb..28d54a227 100644 --- a/doc/object.md +++ b/doc/object.md @@ -218,8 +218,8 @@ Define a property on the object. void Napi::Object::DefineProperties (____ properties) ``` - `[in] properties`: A list of [`Napi::PropertyDescriptor`](property_descriptor.md). Can be one of the following types: - - const std::initializer_list& - - const std::vector& + - const std::initializer_list& + - const std::vector& Defines properties on the object. diff --git a/doc/property_descriptor.md b/doc/property_descriptor.md index 793e53626..1a7e4f940 100644 --- a/doc/property_descriptor.md +++ b/doc/property_descriptor.md @@ -220,7 +220,7 @@ The name of the property can be any of the following types: static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function (___ name, Callable cb, napi_property_attributes attributes = napi_default, - void *data = nullptr); + void *data = nullptr); ``` * `[in] name`: The name of the Callable function. @@ -244,7 +244,7 @@ static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function ( ___ name, Callable cb, napi_property_attributes attributes = napi_default, - void *data = nullptr); + void *data = nullptr); ``` * `[in] env`: The environment in which to create this accessor. diff --git a/napi-inl.h b/napi-inl.h index a5bdff854..178807815 100644 --- a/napi-inl.h +++ b/napi-inl.h @@ -4148,10 +4148,9 @@ inline AsyncContext::AsyncContext(napi_env env, const char* resource_name) } inline AsyncContext::AsyncContext(napi_env env, - const char* resource_name, + const char* resource_name, const Object& resource) - : _env(env), - _context(nullptr) { + : _env(env), _context(nullptr) { napi_value resource_id; napi_status status = napi_create_string_utf8( _env, resource_name, NAPI_AUTO_LENGTH, &resource_id);