n-api: fix compiler warning

private field 'async_context' is not used [-Wunused-private-field]

PR-URL: https://github.com/nodejs/node/pull/21597
Refs: https://github.com/nodejs/node/pull/17887
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
cjihrig 2018-06-29 19:52:46 -04:00
parent 2ae45240a2
commit a27b0a35bd
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -3883,7 +3883,6 @@ class TsFn: public node::AsyncResource {
void* finalize_data; void* finalize_data;
napi_finalize finalize_cb; napi_finalize finalize_cb;
bool idle_running; bool idle_running;
napi_async_context async_context;
napi_threadsafe_function_call_js call_js_cb; napi_threadsafe_function_call_js call_js_cb;
bool handles_closing; bool handles_closing;
}; };