diff --git a/test/parallel/test-fs-read.js b/test/parallel/test-fs-read.js index 5c9e59795fc39f..70296172ed9988 100644 --- a/test/parallel/test-fs-read.js +++ b/test/parallel/test-fs-read.js @@ -80,7 +80,7 @@ assert.throws( assert.throws( () => fs.read(fd, { buffer: null }, common.mustNotCall()), - /TypeError: Cannot read property 'byteLength' of null/, + /TypeError: Cannot read properties of null \(reading 'byteLength'\)/, 'throws when options.buffer is null' );