diff --git a/src/stream_base-inl.h b/src/stream_base-inl.h
index 392dc2c87c3..4f4252073d2 100644
--- a/src/stream_base-inl.h
+++ b/src/stream_base-inl.h
@@ -335,8 +335,7 @@ void StreamBase::AddMethods(Environment* env,
env->SetProtoMethod(t, "readStart", JSMethod);
env->SetProtoMethod(t, "readStop", JSMethod);
- if ((flags & kFlagNoShutdown) == 0)
- env->SetProtoMethod(t, "shutdown", JSMethod);
+ env->SetProtoMethod(t, "shutdown", JSMethod);
if ((flags & kFlagHasWritev) != 0)
env->SetProtoMethod(t, "writev", JSMethod);
env->SetProtoMethod(t,
diff --git a/src/stream_base.h b/src/stream_base.h
index 96b8589b068..94a091988cf 100644
--- a/src/stream_base.h
+++ b/src/stream_base.h
@@ -257,8 +257,7 @@ class StreamBase : public StreamResource {
public:
enum Flags {
kFlagNone = 0x0,
- kFlagHasWritev = 0x1,
- kFlagNoShutdown = 0x2
+ kFlagHasWritev = 0x1
};
template
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 9977738afcb..c5abc6bf9b9 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -61,7 +61,7 @@ void TTYWrap::Initialize(Local