PR-URL: https://github.com/nodejs/node/pull/3049
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
uv_req->result = err; \
uv_req->path = nullptr; \
After(uv_req); \
- } \
- args.GetReturnValue().Set(req_wrap->persistent());
+ req_wrap = nullptr; \
+ } else { \
+ args.GetReturnValue().Set(req_wrap->persistent()); \
+ }
#define ASYNC_CALL(func, req, ...) \
ASYNC_DEST_CALL(func, req, nullptr, __VA_ARGS__) \
uv_req->result = err;
uv_req->path = nullptr;
After(uv_req);
+ return;
}
return args.GetReturnValue().Set(req_wrap->persistent());