Skip to content

Commit 2fd0f79

Browse files
kvakiltargos
authored andcommitted
src: fix duplication of externalized builtin code
The `else` here was missing, causing us to append the file to its existing `source` already in the map. Refs: #45942 PR-URL: #47079 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5a43586 commit 2fd0f79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node_builtins.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ void BuiltinLoader::AddExternalizedBuiltin(const char* id,
227227
auto it = externalized_builtin_sources.find(id);
228228
if (it != externalized_builtin_sources.end()) {
229229
source = it->second;
230-
}
231-
{
230+
} else {
232231
int r = ReadFileSync(&source, filename);
233232
if (r != 0) {
234233
fprintf(stderr,

0 commit comments

Comments
 (0)