Skip to content

Commit 9380c18

Browse files
cjihrigMylesBorins
authored andcommitted
test: add read_only_space heap space
v8.getHeapSpaceStatistics() now includes read_only_space in its results. Update test-v8-stats.js to account for this. Fixes: nodejs/node-v8#44 PR-URL: #19989 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent fbe6b85 commit 9380c18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-v8-stats.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const expectedHeapSpaces = [
2525
'old_space',
2626
'code_space',
2727
'map_space',
28-
'large_object_space'
28+
'large_object_space',
29+
'read_only_space'
2930
];
3031
const heapSpaceStatistics = v8.getHeapSpaceStatistics();
3132
const actualHeapSpaceNames = heapSpaceStatistics.map((s) => s.space_name);

0 commit comments

Comments
 (0)