We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1a98a8 commit c6388edCopy full SHA for c6388ed
src/uv.cc
@@ -81,9 +81,11 @@ void Initialize(Local<Object> target,
81
OneByteString(isolate, #name), \
82
OneByteString(isolate, msg) \
83
}; \
84
- err_map->Set(context, \
85
- Integer::New(isolate, UV_##name), \
86
- Array::New(isolate, arr, arraysize(arr))).ToLocalChecked(); \
+ if (err_map->Set(context, \
+ Integer::New(isolate, UV_##name), \
+ Array::New(isolate, arr, arraysize(arr))).IsEmpty()) { \
87
+ return; \
88
+ } \
89
} while (0);
90
UV_ERRNO_MAP(V)
91
#undef V
0 commit comments