mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(ext/node): fix duplexify compatibility (#21346)
This commit is contained in:
parent
45fe3ccccf
commit
4ed9278bf4
2 changed files with 1 additions and 5 deletions
|
@ -287,8 +287,6 @@ const { Blob } = require('buffer');
|
|||
duplex.write('test');
|
||||
}
|
||||
|
||||
/*
|
||||
TODO(kt3k): Enable this test case
|
||||
{
|
||||
const through = new PassThrough({ objectMode: true });
|
||||
|
||||
|
@ -309,7 +307,6 @@ TODO(kt3k): Enable this test case
|
|||
assert.strictEqual(res, 'foobar');
|
||||
})).on('close', common.mustCall());
|
||||
}
|
||||
*/
|
||||
|
||||
function makeATestReadableStream(value) {
|
||||
return new ReadableStream({
|
||||
|
|
|
@ -4474,6 +4474,7 @@ var require_duplexify = __commonJS({
|
|||
readable: false,
|
||||
});
|
||||
}
|
||||
|
||||
if (typeof body === "function") {
|
||||
const { value, write, final, destroy } = fromAsyncGen(body);
|
||||
if (isIterable(value)) {
|
||||
|
@ -4669,8 +4670,6 @@ var require_duplexify = __commonJS({
|
|||
cb(err);
|
||||
} else if (err) {
|
||||
d.destroy(err);
|
||||
} else if (!readable && !writable) {
|
||||
d.destroy();
|
||||
}
|
||||
}
|
||||
d = new Duplexify({
|
||||
|
|
Loading…
Add table
Reference in a new issue