xref: /third_party/node/test/pummel/test-heapdump-worker.js (revision 1cb0ef41)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/pummel/
11cb0ef41Sopenharmony_ci// Flags: --expose-internals
21cb0ef41Sopenharmony_ci'use strict';
31cb0ef41Sopenharmony_cirequire('../common');
41cb0ef41Sopenharmony_ciconst { validateSnapshotNodes } = require('../common/heap');
51cb0ef41Sopenharmony_ciconst { Worker } = require('worker_threads');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_civalidateSnapshotNodes('Node / Worker', []);
81cb0ef41Sopenharmony_ciconst worker = new Worker('setInterval(() => {}, 100);', { eval: true });
91cb0ef41Sopenharmony_civalidateSnapshotNodes('Node / MessagePort', [
101cb0ef41Sopenharmony_ci  {
111cb0ef41Sopenharmony_ci    children: [
121cb0ef41Sopenharmony_ci      { node_name: 'Node / MessagePortData', edge_name: 'data' },
131cb0ef41Sopenharmony_ci    ],
141cb0ef41Sopenharmony_ci  },
151cb0ef41Sopenharmony_ci], { loose: true });
161cb0ef41Sopenharmony_ciworker.terminate();
17

Indexes created Thu Nov 07 10:32:03 CST 2024