We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f2a2d commit e5302fbCopy full SHA for e5302fb
deps/undici/src/lib/mock/pending-interceptors-formatter.js
@@ -38,6 +38,6 @@ module.exports = class PendingInterceptorsFormatter {
38
}))
39
40
this.logger.table(withPrettyHeaders)
41
- return this.transform.read().toString()
+ return this.transform.read(this.transform.readableLength).toString()
42
}
43
test/common/heap.js
@@ -21,7 +21,7 @@ const { getHeapSnapshot } = require('v8');
21
22
function createJSHeapSnapshot(stream = getHeapSnapshot()) {
23
stream.pause();
24
- const dump = JSON.parse(stream.read());
+ const dump = JSON.parse(stream.read(stream.readableLength));
25
const meta = dump.snapshot.meta;
26
27
const nodes =
0 commit comments