File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,12 @@ void NativeModuleLoader::InitializeModuleCategories() {
42
42
return ;
43
43
}
44
44
45
- std::set <std::string> prefixes = {
45
+ std::vector <std::string> prefixes = {
46
46
#if !HAVE_OPENSSL
47
47
" internal/crypto/" ,
48
48
#endif // !HAVE_OPENSSL
49
49
50
+ " internal/bootstrap/" ,
50
51
" internal/per_context/" ,
51
52
" internal/deps/" ,
52
53
" internal/main/"
@@ -80,9 +81,6 @@ void NativeModuleLoader::InitializeModuleCategories() {
80
81
" internal/test/binding" ,
81
82
" internal/v8_prof_polyfill" ,
82
83
" internal/v8_prof_processor" ,
83
- " internal/bootstrap/loaders" ,
84
- " internal/bootstrap/node" ,
85
- " internal/bootstrap/primordials"
86
84
};
87
85
88
86
for (auto const & x : source_) {
@@ -99,8 +97,7 @@ void NativeModuleLoader::InitializeModuleCategories() {
99
97
100
98
for (auto const & x : source_) {
101
99
const std::string& id = x.first ;
102
- if (module_categories_.cannot_be_required .find (id) ==
103
- module_categories_.cannot_be_required .end ()) {
100
+ if (0 == module_categories_.cannot_be_required .count (id)) {
104
101
module_categories_.can_be_required .emplace (id);
105
102
}
106
103
}
You can’t perform that action at this time.
0 commit comments