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 b6e844e commit a575a6eCopy full SHA for a575a6e
napi-inl.h
@@ -3262,7 +3262,7 @@ inline void InstanceWrap<T>::AttachPropData(napi_env env,
3262
napi_value value,
3263
const napi_property_descriptor* prop) {
3264
napi_status status;
3265
- if (prop->method != nullptr && !(prop->attributes & napi_static)) {
+ if (!(prop->attributes & napi_static)) {
3266
if (prop->method == T::InstanceVoidMethodCallbackWrapper) {
3267
status = Napi::details::AttachData(env,
3268
value,
0 commit comments