2018-07-10 20:12:23 +00:00
|
|
|
// Flags: --expose-internals
|
|
|
|
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const { validateSnapshotNodes } = require('../common/heap');
|
|
|
|
|
2018-09-23 21:52:09 +00:00
|
|
|
validateSnapshotNodes('Node / ChannelWrap', []);
|
2018-07-10 20:12:23 +00:00
|
|
|
const dns = require('dns');
|
2018-09-23 21:52:09 +00:00
|
|
|
validateSnapshotNodes('Node / ChannelWrap', [{}]);
|
2018-07-10 20:12:23 +00:00
|
|
|
dns.resolve('localhost', () => {});
|
2018-09-23 21:52:09 +00:00
|
|
|
validateSnapshotNodes('Node / ChannelWrap', [
|
2018-07-10 20:12:23 +00:00
|
|
|
{
|
|
|
|
children: [
|
2021-04-08 22:45:45 +00:00
|
|
|
{ node_name: 'Node / NodeAresTask::List', edge_name: 'task_list' },
|
2018-07-22 01:12:19 +00:00
|
|
|
// `Node / ChannelWrap` (C++) -> `ChannelWrap` (JS)
|
2023-02-06 15:44:16 +00:00
|
|
|
{ node_name: 'ChannelWrap', edge_name: 'native_to_javascript' },
|
2022-09-27 06:15:51 +00:00
|
|
|
],
|
2023-02-12 16:36:39 +00:00
|
|
|
detachedness: 2,
|
2021-03-26 15:51:08 +00:00
|
|
|
},
|
2018-07-10 20:12:23 +00:00
|
|
|
]);
|