diff --git a/src/node_sea.cc b/src/node_sea.cc index 556646a5ef1b930..de389ca0dcf8ed6 100644 --- a/src/node_sea.cc +++ b/src/node_sea.cc @@ -292,12 +292,12 @@ std::optional GenerateCodeCache(std::string_view main_path, Local filename; if (!String::NewFromUtf8(isolate, main_path.data()).ToLocal(&filename)) { - return {}; + return std::nullopt; } Local content; if (!String::NewFromUtf8(isolate, main_script.data()).ToLocal(&content)) { - return {}; + return std::nullopt; } std::vector> parameters = { @@ -312,7 +312,7 @@ std::optional GenerateCodeCache(std::string_view main_path, if (!contextify::CompileFunction( isolate, context, filename, content, std::move(parameters)) .ToLocal(&fn)) { - return {}; + return std::nullopt; } std::unique_ptr cache{