summaryrefslogtreecommitdiff
path: root/src/tcp_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp_wrap.cc')
-rw-r--r--src/tcp_wrap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc
index cda30d8410..d462eff15d 100644
--- a/src/tcp_wrap.cc
+++ b/src/tcp_wrap.cc
@@ -124,7 +124,7 @@ void TCPWrap::Initialize(Local<Object> target,
NODE_DEFINE_CONSTANT(constants, SOCKET);
NODE_DEFINE_CONSTANT(constants, SERVER);
target->Set(context,
- FIXED_ONE_BYTE_STRING(env->isolate(), "constants"),
+ env->constants_string(),
constants).FromJust();
}