stream: validate writable defaultEncoding#46322
Conversation
|
Review requested:
|
mcollina
left a comment
There was a problem hiding this comment.
What happens if encoding is set and objectMode is set?
in the example |
Commit Queue failed- Loading data for nodejs/node/pull/46322 ✔ Done loading data for nodejs/node/pull/46322 ----------------------------------- PR info ------------------------------------ Title stream: validate writable defaultEncoding (#46322) Author Marco Ippolito (@marco-ippolito) Branch marco-ippolito:feat/validate-default-encoding -> nodejs:main Labels semver-major Commits 4 - stream: validate writable defaultEncoding - stream: test falsy defaultEncoding - stream: test object mode - stream: refactor code style Committers 1 - Marco Ippolito PR-URL: https://github.com/nodejs/node/pull/46322 Fixes: https://github.com/nodejs/node/issues/46301 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Paolo Insogna Reviewed-By: Benjamin Gruenbaum Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/46322 Fixes: https://github.com/nodejs/node/issues/46301 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Paolo Insogna Reviewed-By: Benjamin Gruenbaum Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 23 Jan 2023 21:15:25 GMT ✔ Approvals: 6 ✔ - Robert Nagy (@ronag) (TSC): https://github.com/nodejs/node/pull/46322#pullrequestreview-1266353265 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/46322#pullrequestreview-1267105299 ✔ - Paolo Insogna (@ShogunPanda): https://github.com/nodejs/node/pull/46322#pullrequestreview-1267507590 ✔ - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/46322#pullrequestreview-1267936213 ✔ - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/46322#pullrequestreview-1270011746 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/46322#pullrequestreview-1270098666 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-01-30T16:05:40Z: https://ci.nodejs.org/job/node-test-pull-request/49252/ - Querying data for job/node-test-pull-request/49252/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 46322 From https://github.com/nodejs/node * branch refs/pull/46322/merge -> FETCH_HEAD ✔ Fetched commits as a5fd53f8eff7..958633dd2ad9 -------------------------------------------------------------------------------- [main ab718f9c95] stream: validate writable defaultEncoding Author: Marco Ippolito Date: Mon Jan 23 22:13:03 2023 +0100 2 files changed, 31 insertions(+), 1 deletion(-) [main 57e3f04abe] stream: test falsy defaultEncoding Author: Marco Ippolito Date: Tue Jan 24 09:32:37 2023 +0100 1 file changed, 13 insertions(+) [main eeb0cd9b48] stream: test object mode Author: Marco Ippolito Date: Tue Jan 24 10:07:00 2023 +0100 1 file changed, 10 insertions(+) [main 8842b7f615] stream: refactor code style Author: Marco Ippolito Date: Wed Jan 25 10:27:25 2023 +0100 1 file changed, 5 insertions(+), 4 deletions(-) ✔ Patches applied There are 4 commits in the PR. Attempting autorebase. Rebasing (2/8)https://github.com/nodejs/node/actions/runs/4046566650 |
|
Landed in 9e7093f |
fixes: #46301
this has to be done for
stream.Readabletoo for consistency. I'll open another pr for readable if this gets approved