We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e3ca8 commit 39ce757Copy full SHA for 39ce757
src/node_api.cc
@@ -58,7 +58,8 @@ struct napi_env__ {
58
(destination)->SetInternalFieldCount((field_count)); \
59
(env)->prefix ## _template.Reset(isolate, (destination)); \
60
} else { \
61
- (destination) = env->prefix ## _template.Get(isolate); \
+ (destination) = v8::Local<v8::ObjectTemplate>::New( \
62
+ isolate, env->prefix ## _template); \
63
} \
64
} while (0)
65
0 commit comments