diff --git a/src/node_api.cc b/src/node_api.cc index d61119bbd6fb03..f3d717f3e46ab8 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -22,8 +22,7 @@ napi_status napi_set_last_error(napi_env env, napi_status error_code, void* engine_reserved = nullptr); void napi_clear_last_error(napi_env env); -class napi_env__ { - public: +struct napi_env__ { explicit napi_env__(v8::Isolate* _isolate): isolate(_isolate), has_instance_available(true), last_error() {} ~napi_env__() {