diff --git a/src/node_file.cc b/src/node_file.cc index 679791e0151428..d5ce4d7d8d067a 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -875,7 +875,7 @@ void FromNamespacedPath(std::string* path) { static inline int GetValidMode(Environment* env, - Local mode_v, std::string type) { + Local mode_v, std::string_view type) { if (!mode_v->IsInt32() && !mode_v->IsNullOrUndefined()) { THROW_ERR_INVALID_ARG_TYPE(env, "mode must be int32 or null/undefined"); return -1;