From 299e6b44cc496913dd81a4d26638d605085ab9fc Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Wed, 31 Aug 2022 22:41:42 +0800 Subject: [PATCH] src: introduce node::Realm To distinguish per-context values from the node::Environment, split those values to a new node::Realm structure and consolidate bootstrapping methods with it. PR-URL: https://github.com/nodejs/node/pull/44179 Refs: https://github.com/nodejs/node/issues/42528 Reviewed-By: Joyee Cheung Reviewed-By: James M Snell --- test/pummel/test-heapdump-env.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/pummel/test-heapdump-env.js b/test/pummel/test-heapdump-env.js index 2e9f75cbfff3ba..703ad8f690ce95 100644 --- a/test/pummel/test-heapdump-env.js +++ b/test/pummel/test-heapdump-env.js @@ -38,4 +38,10 @@ validateSnapshotNodes('Node / Realm', [{ ] }]); +validateSnapshotNodes('Node / Realm', [{ + children: [ + { node_name: 'process', edge_name: 'process_object' }, + ] +}]); + console.log(context); // Make sure it's not GC'ed