| 2662 | }; |
| 2663 | |
| 2664 | class 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 | |
| 2682 | class EscapableHandleScope { |
| 2683 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected