diff --git a/test/parallel/test-wrap-js-stream-exceptions.js b/test/parallel/test-wrap-js-stream-exceptions.js index 1b4d469a758d77..b0269bd1282a4c 100644 --- a/test/parallel/test-wrap-js-stream-exceptions.js +++ b/test/parallel/test-wrap-js-stream-exceptions.js @@ -11,7 +11,7 @@ process.once('uncaughtException', common.mustCall((err) => { const socket = new JSStreamWrap(new Duplex({ read: common.mustCall(), - write: common.mustCall((buffer, data, cb) => { + write: common.mustCall(() => { throw new Error('exception!'); }) }));