From 549d717722fbf629823ca1a85a863b3458d268a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 17 Jul 2021 11:02:11 +0200 Subject: [PATCH] test: adapt test-fs-read to V8 9.3 An error message changed. Refs: https://github.com/v8/v8/commit/c0fd89c3c089e888c4f4e8582e56db7066fa779b PR-URL: https://github.com/nodejs/node/pull/39469 Backport-PR-URL: https://github.com/nodejs/node/pull/39947 Reviewed-By: Jiawen Geng Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- test/parallel/test-fs-read.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' );