Skip to content

Commit de2845b

Browse files
committed
fixup! fixup! fixup! process: start coverage collection before bootstrap
1 parent 44ff18b commit de2845b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/node_binding.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
#define NODE_BUILTIN_REPORT_MODULES(V)
2222
#endif
2323

24+
#if HAVE_INSPECTOR
25+
#define NODE_BUILTIN_COVERAGE_MODULES(V) V(coverage)
26+
#else
27+
#define NODE_BUILTIN_COVERAGE_MODULES(V)
28+
#endif
29+
2430
// A list of built-in modules. In order to do module registration
2531
// in node::Init(), need to add built-in modules in the following list.
2632
// Then in binding::RegisterBuiltinModules(), it calls modules' registration
@@ -33,7 +39,6 @@
3339
V(cares_wrap) \
3440
V(config) \
3541
V(contextify) \
36-
V(coverage) \
3742
V(credentials) \
3843
V(domain) \
3944
V(fs) \
@@ -78,7 +83,8 @@
7883
NODE_BUILTIN_STANDARD_MODULES(V) \
7984
NODE_BUILTIN_OPENSSL_MODULES(V) \
8085
NODE_BUILTIN_ICU_MODULES(V) \
81-
NODE_BUILTIN_REPORT_MODULES(V)
86+
NODE_BUILTIN_REPORT_MODULES(V) \
87+
NODE_BUILTIN_COVERAGE_MODULES(V)
8288

8389
// This is used to load built-in modules. Instead of using
8490
// __attribute__((constructor)), we call the _register_<modname>

0 commit comments

Comments
 (0)