Skip to content

Commit

Permalink
test: adapt test-fs-read to V8 9.3
Browse files Browse the repository at this point in the history
An error message changed.

Refs: v8/v8@c0fd89c

PR-URL: nodejs#39469
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
targos committed Aug 30, 2021
1 parent 6efd683 commit 4041a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);

Expand Down

0 comments on commit 4041a2a

Please sign in to comment.