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 cheungxi committed Jan 29, 2023
1 parent 2efcf73 commit e00ed72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/pummel/test-heapdump-env.js
Original file line number Diff line number Diff line change
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 e00ed72

Please sign in to comment.