build,win: fix dll build
Fixes: https://github.com/nodejs/node/issues/58208 PR-URL: https://github.com/nodejs/node/pull/58357 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
parent
9dc41f27f4
commit
ef9cd8f062
@ -64,6 +64,11 @@ BuiltinLoader::BuiltinLoader()
|
||||
#endif // HAVE_AMARO
|
||||
}
|
||||
|
||||
std::ranges::keys_view<std::ranges::ref_view<const BuiltinSourceMap>>
|
||||
BuiltinLoader::GetBuiltinIds() const {
|
||||
return std::views::keys(*source_.read());
|
||||
}
|
||||
|
||||
bool BuiltinLoader::Exists(const char* id) {
|
||||
auto source = source_.read();
|
||||
return source->find(id) != source->end();
|
||||
|
@ -127,9 +127,9 @@ class NODE_EXTERN_PRIVATE BuiltinLoader {
|
||||
|
||||
void CopySourceAndCodeCacheReferenceFrom(const BuiltinLoader* other);
|
||||
|
||||
[[nodiscard]] auto GetBuiltinIds() const {
|
||||
return std::views::keys(*source_.read());
|
||||
}
|
||||
[[nodiscard]] std::ranges::keys_view<
|
||||
std::ranges::ref_view<const BuiltinSourceMap>>
|
||||
GetBuiltinIds() const;
|
||||
|
||||
void SetEagerCompile() { should_eager_compile_ = true; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user