Skip to content

Commit dd0f164

Browse files
joyeecheungrichardlau
authored andcommitted
test: fix test-bootstrap-modules for coverage generation
The internal binding profiler is loaded if the test is run with NODE_V8_COVERAGE. PR-URL: #51816 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]>
1 parent 587e70e commit dd0f164

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-bootstrap-modules.js

+5
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ if (process.features.inspector) {
160160
expected.beforePreExec.add('Internal Binding inspector');
161161
expected.beforePreExec.add('NativeModule internal/util/inspector');
162162
expected.atRunTime.add('NativeModule internal/inspector_async_hook');
163+
164+
// This is loaded if the test is run with NODE_V8_COVERAGE.
165+
if (process.env.NODE_V8_COVERAGE) {
166+
expected.atRunTime.add('Internal Binding profiler');
167+
}
163168
}
164169

165170
const difference = (setA, setB) => {

0 commit comments

Comments
 (0)