| 2700 | |
| 2701 | #if (NAPI_VERSION > 2) |
| 2702 | class CallbackScope { |
| 2703 | public: |
| 2704 | CallbackScope(napi_env env, napi_callback_scope scope); |
| 2705 | CallbackScope(napi_env env, napi_async_context context); |
| 2706 | virtual ~CallbackScope(); |
| 2707 | |
| 2708 | // Disallow copying to prevent double close of napi_callback_scope |
| 2709 | NAPI_DISALLOW_ASSIGN_COPY(CallbackScope) |
| 2710 | |
| 2711 | operator napi_callback_scope() const; |
| 2712 | |
| 2713 | Napi::Env Env() const; |
| 2714 | |
| 2715 | private: |
| 2716 | napi_env _env; |
| 2717 | napi_callback_scope _scope; |
| 2718 | }; |
| 2719 | #endif |
| 2720 | |
| 2721 | class AsyncContext { |
nothing calls this directly
no outgoing calls
no test coverage detected