summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/parallel/test-fs-read.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/node_compat/test/parallel/test-fs-read.js')
-rw-r--r--tests/node_compat/test/parallel/test-fs-read.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/node_compat/test/parallel/test-fs-read.js b/tests/node_compat/test/parallel/test-fs-read.js
index 3afad7aad..e8318df1e 100644
--- a/tests/node_compat/test/parallel/test-fs-read.js
+++ b/tests/node_compat/test/parallel/test-fs-read.js
@@ -86,7 +86,7 @@ assert.throws(
assert.throws(
() => fs.read(fd, { buffer: null }, common.mustNotCall()),
- /TypeError: Cannot read properties of null \(reading 'byteLength'\)/,
+ { code: 'ERR_INVALID_ARG_TYPE' },
'throws when options.buffer is null'
);