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.

PR-URL: #12333
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
bnoordhuis committed Apr 11, 2017
1 parent c1670b6 commit affe0f2
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 @@ -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__() {
Expand Down

0 comments on commit affe0f2

Please sign in to comment.