src: remove duplicated code in GenerateSingleExecutableBlob()
PR-URL: https://github.com/nodejs/node/pull/49119 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
b5740756ca
commit
6476c99ddc
@ -486,13 +486,6 @@ ExitCode GenerateSingleExecutableBlob(
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<std::string> optional_code_cache =
|
||||
GenerateCodeCache(config.main_path, main_script);
|
||||
if (!optional_code_cache.has_value()) {
|
||||
FPrintF(stderr, "Cannot generate V8 code cache\n");
|
||||
return ExitCode::kGenericUserError;
|
||||
}
|
||||
|
||||
std::optional<std::string_view> optional_sv_code_cache;
|
||||
std::string code_cache;
|
||||
if (static_cast<bool>(config.flags & SeaFlags::kUseCodeCache)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user