mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
587e70e1ee
commit
dd0f164ca3
1 file changed
+5
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user