Skip to content

Commit ed9afc4

Browse files
committed
fixup
1 parent 90f2a2d commit ed9afc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/heap.js

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

2222
function createJSHeapSnapshot(stream = getHeapSnapshot()) {
2323
stream.pause();
24-
const dump = JSON.parse(stream.read());
24+
const dump = JSON.parse(stream.read(stream.readableLength));
2525
const meta = dump.snapshot.meta;
2626

2727
const nodes =

0 commit comments

Comments
 (0)