test: fix stderr Buffer assertion in exec encoding test

Signed-off-by: greenhead <greenheadhq@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66008
Refs: https://github.com/nodejs/node/pull/10919
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
greenhead authored and Antoine du Hamel committed 2026-09-25 18:01:49 +02:00
1 parent 0a9e844866
commit b8c5283cbc
1 file changed
+1 -1
@@ -41,7 +41,7 @@ if (process.argv[2] === 'child') {
[undefined, null, 'buffer', 'invalid'].forEach((encoding) => {
run({ encoding }, common.mustCall((stdout, stderr) => {
assert(stdout instanceof Buffer);
assert(stdout instanceof Buffer);
assert(stderr instanceof Buffer);
assert.strictEqual(stdout.toString(), expectedStdout);
assert.strictEqual(stderr.toString(), expectedStderr);
}));