diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-27 16:19:16 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-29 22:01:59 +0300 |
commit | 4dbff090c3ff2ba43b0fbb06cc65bef5b5d81008 (patch) | |
tree | 92056e30acb45bbb14fcca733e901d5d37a7fa3c /src/udp_wrap.h | |
parent | 55569759b32b61a94c57283e2030e737ae06c860 (diff) |
src: pass along errors from stream obj instantiation
PR-URL: https://github.com/nodejs/node/pull/25734
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/udp_wrap.h')
-rw-r--r-- | src/udp_wrap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udp_wrap.h b/src/udp_wrap.h index 6347cdea87b..97d95b57d3d 100644 --- a/src/udp_wrap.h +++ b/src/udp_wrap.h @@ -61,9 +61,9 @@ class UDPWrap: public HandleWrap { static void SetTTL(const v8::FunctionCallbackInfo<v8::Value>& args); static void BufferSize(const v8::FunctionCallbackInfo<v8::Value>& args); - static v8::Local<v8::Object> Instantiate(Environment* env, - AsyncWrap* parent, - SocketType type); + static v8::MaybeLocal<v8::Object> Instantiate(Environment* env, + AsyncWrap* parent, + SocketType type); SET_NO_MEMORY_INFO() SET_MEMORY_INFO_NAME(UDPWrap) SET_SELF_SIZE(UDPWrap) |