Skip to content

Commit 098cf0a

Browse files
cjihrignodejs-ci
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: #44
1 parent 0ed8265 commit 098cf0a

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)