node/test/pummel/test-heapdump-dns.js

20 lines
597 B
JavaScript
Raw Normal View History

// Flags: --expose-internals
'use strict';
require('../common');
const { validateSnapshotNodes } = require('../common/heap');
validateSnapshotNodes('Node / ChannelWrap', []);
const dns = require('dns');
validateSnapshotNodes('Node / ChannelWrap', [{}]);
dns.resolve('localhost', () => {});
validateSnapshotNodes('Node / ChannelWrap', [
{
children: [
{ node_name: 'Node / NodeAresTask::List', edge_name: 'task_list' },
// `Node / ChannelWrap` (C++) -> `ChannelWrap` (JS)
{ node_name: 'ChannelWrap', edge_name: 'native_to_javascript' },
],
detachedness: 2,
},
]);