summaryrefslogtreecommitdiff
path: root/test/parallel/test-heapdump-inspector.js
blob: 08fc6703d87c5cea1cbcb3c301b5b0927ef187fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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('JSBindingsConnection', []);
session.connect();
validateSnapshotNodes('JSBindingsConnection', [
  {
    children: [
      { name: 'session' },
      { name: 'Connection' },
      (node) => node.type === 'closure' || typeof node.value === 'function'
    ]
  }
]);