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 HandleScope docs #287

Closed
wants to merge 3 commits into from
Closed
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
16 changes: 8 additions & 8 deletions doc/handle_scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ the section titled (Object lifetime management)[object_lifetime_management].

### Constructor

Creates a new handle scope.
Creates a new handle scope on the stack.

```cpp
HandleScope HandleScope::New(Napi:Env env);
HandleScope(Napi:Env env);
```

- `[in] Env`: The environment in which to construct the HandleScope object.
- `[in] env`: The environment in which to construct the HandleScope object.

Returns a new HandleScope


### Constructor

Creates a new handle scope.
Creates a new handle scope on the stack.

```cpp
HandleScope HandleScope::New(napi_env env, napi_handle_scope scope);
HandleScope(Napi::Env env, Napi::HandleScope scope);
```

- `[in] env`: napi_env in which the scope passed in was created.
- `[in] scope`: pre-existing napi_handle_scope.
- `[in] env`: Napi::Env in which the scope passed in was created.
- `[in] scope`: pre-existing Napi::HandleScope.

Returns a new HandleScope instance which wraps the napi_handle_scope
handle passed in. This can be used to mix usage of the C N-API
Expand All @@ -41,7 +41,7 @@ and node-addon-api.
operator HandleScope::napi_handle_scope

```cpp
operator HandleScope::napi_handle_scope() const
operator napi_handle_scope() const
```

Returns the N-API napi_handle_scope wrapped by the EscapableHandleScope object.
Expand Down