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: https://github.com/nodejs/node/pull/51816
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This commit is contained in:
Joyee Cheung authored and Richard Lau committed 2024-03-25 19:27:30 +00:00
1 parent 587e70e1ee
commit dd0f164ca3
1 file changed
+5
+5
View File
@@ -160,6 +160,11 @@ if (process.features.inspector) {
expected.beforePreExec.add('Internal Binding inspector');
expected.beforePreExec.add('NativeModule internal/util/inspector');
expected.atRunTime.add('NativeModule internal/inspector_async_hook');
// This is loaded if the test is run with NODE_V8_COVERAGE.
if (process.env.NODE_V8_COVERAGE) {
expected.atRunTime.add('Internal Binding profiler');
}
}
const difference = (setA, setB) => {