Skip to content

Commit b8c3319

Browse files
StefanStojanovictargos
authored andcommitted
build,win: fix dll build
Fixes: #58208 PR-URL: #58357 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 1cd417d commit b8c3319

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/node_builtins.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ BuiltinLoader::BuiltinLoader()
6464
#endif // HAVE_AMARO
6565
}
6666

67+
std::ranges::keys_view<std::ranges::ref_view<const BuiltinSourceMap>>
68+
BuiltinLoader::GetBuiltinIds() const {
69+
return std::views::keys(*source_.read());
70+
}
71+
6772
bool BuiltinLoader::Exists(const char* id) {
6873
auto source = source_.read();
6974
return source->find(id) != source->end();

src/node_builtins.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ class NODE_EXTERN_PRIVATE BuiltinLoader {
127127

128128
void CopySourceAndCodeCacheReferenceFrom(const BuiltinLoader* other);
129129

130-
[[nodiscard]] auto GetBuiltinIds() const {
131-
return std::views::keys(*source_.read());
132-
}
130+
[[nodiscard]] std::ranges::keys_view<
131+
std::ranges::ref_view<const BuiltinSourceMap>>
132+
GetBuiltinIds() const;
133133

134134
void SetEagerCompile() { should_eager_compile_ = true; }
135135

0 commit comments

Comments
 (0)