Skip to content

Commit c3537ae

Browse files
authored
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 d51541b commit c3537ae

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
@@ -224,8 +224,7 @@ void BuiltinLoader::AddExternalizedBuiltin(const char* id,
224224
auto it = externalized_builtin_sources.find(id);
225225
if (it != externalized_builtin_sources.end()) {
226226
source = it->second;
227-
}
228-
{
227+
} else {
229228
int r = ReadFileSync(&source, filename);
230229
if (r != 0) {
231230
fprintf(stderr,

0 commit comments

Comments
 (0)