Skip to content

Commit

Permalink
Fixing build issue for node 4
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarnung committed Jul 13, 2017
1 parent 315477b commit 4686a4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ struct napi_env__ {
(destination)->SetInternalFieldCount((field_count)); \
(env)->prefix ## _template.Reset(isolate, (destination)); \
} else { \
(destination) = env->prefix ## _template.Get(isolate); \
(destination) = v8::Local<v8::ObjectTemplate>::New( \
isolate, env->prefix ## _template); \
} \
} while (0)

Expand Down

0 comments on commit 4686a4a

Please sign in to comment.