Skip to content

Commit d9a13d6

Browse files
fix: resolve PR review
1 parent 93397e3 commit d9a13d6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/node_builtins.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ BuiltinLoader::BuiltinLoader()
6464
#endif // HAVE_AMARO
6565
}
6666

67-
auto BuiltinLoader::GetBuiltinIds() const -> decltype(auto) {
67+
std::ranges::keys_view<std::ranges::ref_view<const BuiltinSourceMap>>
68+
BuiltinLoader::GetBuiltinIds() const {
6869
return std::views::keys(*source_.read());
6970
}
7071

src/node_builtins.h

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

128128
void CopySourceAndCodeCacheReferenceFrom(const BuiltinLoader* other);
129129

130-
[[nodiscard]] auto GetBuiltinIds() const -> decltype(auto);
130+
[[nodiscard]] std::ranges::keys_view<
131+
std::ranges::ref_view<const BuiltinSourceMap>>
132+
GetBuiltinIds() const;
131133

132134
void SetEagerCompile() { should_eager_compile_ = true; }
133135

0 commit comments

Comments
 (0)