Skip to content

Commit affe0f2

Browse files
committed
n-api: fix -Wmismatched-tags compiler warning
`napi_env__` was declared as a struct in one place and a class in another. PR-URL: #12333 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c1670b6 commit affe0f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node_api.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ napi_status napi_set_last_error(napi_env env, napi_status error_code,
2222
void* engine_reserved = nullptr);
2323
void napi_clear_last_error(napi_env env);
2424

25-
class napi_env__ {
26-
public:
25+
struct napi_env__ {
2726
explicit napi_env__(v8::Isolate* _isolate): isolate(_isolate),
2827
has_instance_available(true), last_error() {}
2928
~napi_env__() {

0 commit comments

Comments
 (0)