Skip to content

Commit

Permalink
n-api: fix -Wmismatched-tags compiler warning
Browse files Browse the repository at this point in the history
`napi_env__` was declared as a struct in one place and a class in
another.

Backport-PR-URL: #19447
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]>
  • Loading branch information
bnoordhuis authored and MylesBorins committed Apr 16, 2018
1 parent d82fd2a commit eb51d42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/node_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,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__() {
Expand Down

0 comments on commit eb51d42

Please sign in to comment.