diff --git a/src/node_http_common-inl.h b/src/node_http_common-inl.h index 339e5a612312..f37830fe5168 100644 --- a/src/node_http_common-inl.h +++ b/src/node_http_common-inl.h @@ -157,7 +157,7 @@ v8::MaybeLocal NgHeader::GetName( // a statically defined name. We can safely internalize it here. if (header_name != nullptr) { auto& static_str_map = env_->isolate_data()->static_str_map; - v8::Eternal eternal = static_str_map[header_name]; + v8::Eternal& eternal = static_str_map[header_name]; if (eternal.IsEmpty()) { v8::Local str = OneByteString(env_->isolate(), header_name); eternal.Set(env_->isolate(), str);