mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
873e5ce54a
PR-URL: https://github.com/nodejs/node/pull/46610 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
20 lines
597 B
JavaScript
20 lines
597 B
JavaScript
// 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,
|
|
},
|
|
]);
|