diff options
author | Darshan Sen <raisinten@gmail.com> | 2022-03-26 18:39:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 18:39:59 +0300 |
commit | bc395d4c53afaaa53f9088b90ae84249adbf4d2e (patch) | |
tree | e581017fa3b67e3e4fd30dd9646fd177a9e2d44b /src/node_sockaddr-inl.h | |
parent | 99c46a62dae50e10f63e22f6becba99e56ffe975 (diff) |
src: properly report exceptions from AddressToJS()
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/42054
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_sockaddr-inl.h')
-rw-r--r-- | src/node_sockaddr-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_sockaddr-inl.h b/src/node_sockaddr-inl.h index 0b2361595f3..e16a09b04c7 100644 --- a/src/node_sockaddr-inl.h +++ b/src/node_sockaddr-inl.h @@ -157,7 +157,7 @@ void SocketAddress::Update(const sockaddr* data, size_t len) { memcpy(&address_, data, len); } -v8::Local<v8::Object> SocketAddress::ToJS( +v8::MaybeLocal<v8::Object> SocketAddress::ToJS( Environment* env, v8::Local<v8::Object> info) const { return AddressToJS(env, data(), info); |