Skip to content

Commit 87cabd8

Browse files
committed
fixup
1 parent ed9afc4 commit 87cabd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/common/heap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const { getHeapSnapshot } = require('v8');
2121

2222
function createJSHeapSnapshot(stream = getHeapSnapshot()) {
2323
stream.pause();
24+
stream.read(0);
2425
const dump = JSON.parse(stream.read(stream.readableLength));
2526
const meta = dump.snapshot.meta;
2627

0 commit comments

Comments
 (0)