summaryrefslogtreecommitdiff
path: root/src/pipe_wrap.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-27 14:19:16 +0100
committerAnna Henningsen <anna@addaleax.net>2019-01-29 20:01:59 +0100
commit4dbff090c3ff2ba43b0fbb06cc65bef5b5d81008 (patch)
tree92056e30acb45bbb14fcca733e901d5d37a7fa3c /src/pipe_wrap.h
parent55569759b32b61a94c57283e2030e737ae06c860 (diff)
downloadandroid-node-v8-4dbff090c3ff2ba43b0fbb06cc65bef5b5d81008.tar.gz
android-node-v8-4dbff090c3ff2ba43b0fbb06cc65bef5b5d81008.tar.bz2
android-node-v8-4dbff090c3ff2ba43b0fbb06cc65bef5b5d81008.zip
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/pipe_wrap.h')
-rw-r--r--src/pipe_wrap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pipe_wrap.h b/src/pipe_wrap.h
index b98d850439..473179a4f6 100644
--- a/src/pipe_wrap.h
+++ b/src/pipe_wrap.h
@@ -38,9 +38,9 @@ class PipeWrap : public ConnectionWrap<PipeWrap, uv_pipe_t> {
IPC
};
- static v8::Local<v8::Object> Instantiate(Environment* env,
- AsyncWrap* parent,
- SocketType type);
+ static v8::MaybeLocal<v8::Object> Instantiate(Environment* env,
+ AsyncWrap* parent,
+ SocketType type);
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
v8::Local<v8::Context> context,