We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e25dc8e commit 007e285Copy full SHA for 007e285
test/parallel/test-fs-read-type.js
@@ -117,7 +117,7 @@ fs.read(fd,
117
common.mustCall((err) => {
118
if (err) {
119
if (common.isIBMi)
120
- assert.strictEqual(err.errno, -127);
+ assert.strictEqual(err.code, 'EOVERFLOW');
121
else
122
assert.strictEqual(err.code, 'EFBIG');
123
}
@@ -238,6 +238,6 @@ try {
238
// On systems where max file size is below 2^53-1, we'd expect a EFBIG error.
239
// This is not using `assert.throws` because the above call should not raise
240
// any error on systems that allows file of that size.
241
- if (err.code !== 'EFBIG' && !(common.isIBMi && err.errno === -127))
+ if (err.code !== 'EFBIG' && !(common.isIBMi && err.code === 'EOVERFLOW'))
242
throw err;
243
0 commit comments