0
0
Fork 0
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:
Yoshiya Hinosawa 2023-11-28 12:14:57 +09:00 committed by GitHub
parent 45fe3ccccf
commit 4ed9278bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -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({

View file

@ -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({