MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / HandleScope

Class HandleScope

napi.h:2664–2680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2662};
2663
2664class HandleScope {
2665 public:
2666 HandleScope(napi_env env, napi_handle_scope scope);
2667 explicit HandleScope(Napi::Env env);
2668 ~HandleScope();
2669
2670 // Disallow copying to prevent double close of napi_handle_scope
2671 NAPI_DISALLOW_ASSIGN_COPY(HandleScope)
2672
2673 operator napi_handle_scope() const;
2674
2675 Napi::Env Env() const;
2676
2677 private:
2678 napi_env _env;
2679 napi_handle_scope _scope;
2680};
2681
2682class EscapableHandleScope {
2683 public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected