Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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
12 changes: 12 additions & 0 deletions 12 napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,10 @@ namespace Napi {
explicit HandleScope(Napi::Env env);
~HandleScope();

// Disallow copying to prevent double close of napi_handle_scope
HandleScope(HandleScope const &) = delete;
void operator=(HandleScope const &) = delete;

operator napi_handle_scope() const;

Napi::Env Env() const;
Expand All @@ -1744,6 +1748,10 @@ namespace Napi {
explicit EscapableHandleScope(Napi::Env env);
~EscapableHandleScope();

// Disallow copying to prevent double close of napi_escapable_handle_scope
EscapableHandleScope(EscapableHandleScope const &) = delete;
void operator=(EscapableHandleScope const &) = delete;

operator napi_escapable_handle_scope() const;

Napi::Env Env() const;
Expand All @@ -1761,6 +1769,10 @@ namespace Napi {
CallbackScope(napi_env env, napi_async_context context);
virtual ~CallbackScope();

// Disallow copying to prevent double close of napi_callback_scope
CallbackScope(CallbackScope const &) = delete;
void operator=(CallbackScope const &) = delete;

operator napi_callback_scope() const;

Napi::Env Env() const;
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.