File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change
1
+ // Flags: --expose-internals
1
2
'use strict' ;
2
3
3
4
// This list must be computed before we require any modules to
@@ -15,7 +16,6 @@ const expectedModules = new Set([
15
16
'Internal Binding constants' ,
16
17
'Internal Binding contextify' ,
17
18
'Internal Binding credentials' ,
18
- 'Internal Binding dtrace' ,
19
19
'Internal Binding errors' ,
20
20
'Internal Binding fs_dir' ,
21
21
'Internal Binding fs_event_wrap' ,
@@ -206,6 +206,11 @@ if (process.env.NODE_V8_COVERAGE) {
206
206
expectedModules . add ( 'Internal Binding profiler' ) ;
207
207
}
208
208
209
+ const { internalBinding } = require ( 'internal/test/binding' ) ;
210
+ if ( internalBinding ( 'config' ) . hasDtrace ) {
211
+ expectedModules . add ( 'Internal Binding dtrace' ) ;
212
+ }
213
+
209
214
const difference = ( setA , setB ) => {
210
215
return new Set ( [ ...setA ] . filter ( ( x ) => ! setB . has ( x ) ) ) ;
211
216
} ;
You can’t perform that action at this time.
0 commit comments