Lines Matching defs:const
2 const assert = require('assert');
3 const util = require('util');
13 const { buildEmbedderGraph } = internalBinding('heap_utils');
14 const { getHeapSnapshot } = require('v8');
18 const dump = JSON.parse(stream.read());
19 const meta = dump.snapshot.meta;
21 const nodes =
23 const edges =
26 for (const node of nodes) {
33 for (const { type, name_or_index, to_node } of edges) {
38 const toNode = nodes[to_node / meta.node_fields.length];
39 const fromNode = nodes[fromNodeIndex];
40 const edge = {
51 for (const node of nodes) {
59 const items = [];
62 const item = {};
64 const name = fields[j];
114 const rootNodes = this.snapshot.filter(
127 for (const expectation of expected) {
129 for (const expectedEdge of expectation.children) {
130 const check = typeof expectedEdge === 'function' ? expectedEdge :
132 const hasChild = rootNodes.some(
147 const matchedNodes = rootNodes.filter(
166 const rootNodes = this.embedderGraph.filter(
179 for (const expectation of expected) {
181 for (const expectedEdge of expectation.children) {
182 const check = typeof expectedEdge === 'function' ? expectedEdge :
187 const hasChild = rootNodes.some(