mirror of
https://github.com/nodejs/node.git
synced 2025-05-11 01:27:14 +00:00

If writable/readable has been explicitly disabled then using a Duplex as writable/readable should fail. Fixes: https://github.com/nodejs/node/issues/34374 PR-URL: https://github.com/nodejs/node/pull/34385 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
16 lines
134 B
Plaintext
16 lines
134 B
Plaintext
> >
|
|
console.log("foo")
|
|
foo
|
|
undefined
|
|
> 1 + 2
|
|
3
|
|
> "str"
|
|
'str'
|
|
> console.dir({ a: 1 })
|
|
{ a: 1 }
|
|
undefined
|
|
> { a: 1 }
|
|
{ a: 1 }
|
|
>
|
|
> .exit
|