Skip to content

Commit 4dfb95d

Browse files
joyeecheungmarco-ippolito
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 5e1273c commit 4dfb95d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-bootstrap-modules.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ if (process.features.inspector) {
161161
expected.beforePreExec.add('Internal Binding inspector');
162162
expected.beforePreExec.add('NativeModule internal/util/inspector');
163163
expected.atRunTime.add('NativeModule internal/inspector_async_hook');
164+
165+
// This is loaded if the test is run with NODE_V8_COVERAGE.
166+
if (process.env.NODE_V8_COVERAGE) {
167+
expected.atRunTime.add('Internal Binding profiler');
168+
}
164169
}
165170

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

0 commit comments

Comments
 (0)