diff options
Diffstat (limited to 'test/parallel/test-heapdump-inspector.js')
-rw-r--r-- | test/parallel/test-heapdump-inspector.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/parallel/test-heapdump-inspector.js b/test/parallel/test-heapdump-inspector.js new file mode 100644 index 0000000000..355b8d0d0a --- /dev/null +++ b/test/parallel/test-heapdump-inspector.js @@ -0,0 +1,21 @@ +// Flags: --expose-internals +'use strict'; +const common = require('../common'); + +common.skipIfInspectorDisabled(); + +const { validateSnapshotNodes } = require('../common/heap'); +const inspector = require('inspector'); + +const session = new inspector.Session(); +validateSnapshotNodes('INSPECTORJSBINDING', []); +session.connect(); +validateSnapshotNodes('INSPECTORJSBINDING', [ + { + children: [ + { name: 'session' }, + { name: 'Connection' }, + (node) => node.type === 'closure' || typeof node.value === 'function' + ] + } +]); |