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 4a607fa commit ca4a22eCopy full SHA for ca4a22e
src/uv.cc
@@ -71,9 +71,11 @@ void Initialize(Local<Object> target,
71
Local<Array> arr = Array::New(isolate, 2); \
72
arr->Set(0, OneByteString(isolate, #name)); \
73
arr->Set(1, OneByteString(isolate, msg)); \
74
- err_map->Set(context, \
75
- Integer::New(isolate, UV_##name), \
76
- arr).ToLocalChecked(); \
+ if (err_map->Set(context, \
+ Integer::New(isolate, UV_##name), \
+ arr).IsEmpty()) { \
77
+ return; \
78
+ } \
79
} while (0);
80
UV_ERRNO_MAP(V)
81
#undef V
0 commit comments