Skip to content

Commit

Permalink
src: introduce node::Realm
Browse files Browse the repository at this point in the history
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: nodejs#44179
Refs: nodejs#42528
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
legendecas authored and fossamagna committed Jan 23, 2023
1 parent 997da3d commit 299e6b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/pummel/test-heapdump-env.js
Expand Up @@ -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

0 comments on commit 299e6b4

Please sign in to comment.