mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

This patch migrates ContextifyScript to cppgc-based memory management using CppgcMixin. PR-URL: https://github.com/nodejs/node/pull/52295 Refs: https://github.com/nodejs/node/issues/40786 Refs: https://docs.google.com/document/d/1ny2Qz_EsUnXGKJRGxoA-FXIE2xpLgaMAN6jD7eAkqFQ/edit Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
23 lines
704 B
JavaScript
23 lines
704 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
|
|
// This tests that Environment is tracked in heap snapshots.
|
|
// Tests for BaseObject and cppgc-managed objects are done in other
|
|
// test-heapdump-*.js files.
|
|
|
|
require('../common');
|
|
const { validateSnapshotNodes } = require('../common/heap');
|
|
|
|
validateSnapshotNodes('Node / Environment', [{
|
|
children: [
|
|
{ node_name: 'Node / CleanupQueue', edge_name: 'cleanup_queue' },
|
|
{ node_name: 'Node / IsolateData', edge_name: 'isolate_data' },
|
|
{ node_name: 'Node / PrincipalRealm', edge_name: 'principal_realm' },
|
|
],
|
|
}]);
|
|
|
|
validateSnapshotNodes('Node / PrincipalRealm', [{
|
|
children: [
|
|
{ node_name: 'process', edge_name: 'process_object' },
|
|
],
|
|
}]);
|