Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tab indent #938

Merged
merged 2 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Napi::PropertyDescriptor>&
- const std::vector<Napi::PropertyDescriptor>&
- const std::initializer_list<Napi::PropertyDescriptor>&
- const std::vector<Napi::PropertyDescriptor>&

Defines properties on the object.

Expand Down
4 changes: 2 additions & 2 deletions doc/property_descriptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down