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
Backport-PR-URL: https://github.com/nodejs/node/pull/25002
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
cjihrig authored and Rod Vagg committed 2019-02-28 23:40:10 +11:00
1 parent 759a0180b5
commit c5a11dc58e
1 file changed
-1
-1
View File
@@ -3920,7 +3920,6 @@ class TsFn: public node::AsyncResource {
void* finalize_data;
napi_finalize finalize_cb;
bool idle_running;
napi_async_context async_context;
napi_threadsafe_function_call_js call_js_cb;
bool handles_closing;
};