mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: add EOVERFLOW as an allowed error
in test-fs-read-promises-position-validation.mjs As stated in https://github.com/nodejs/node/issues/50054 This looks like an oversight as test-fs-read-position-validation.mjs includes EOVERFLOW as an allowed error. Fixes https://github.com/nodejs/node/issues/50054 PR-URL: https://github.com/nodejs/node/pull/50128 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
@@ -62,9 +62,9 @@ async function testInvalid(code, position) {
|
||||
await testValid(1n);
|
||||
await testValid(9);
|
||||
await testValid(9n);
|
||||
await testValid(Number.MAX_SAFE_INTEGER, [ 'EFBIG' ]);
|
||||
await testValid(Number.MAX_SAFE_INTEGER, [ 'EFBIG', 'EOVERFLOW']);
|
||||
|
||||
await testValid(2n ** 63n - 1n - BigInt(length), [ 'EFBIG' ]);
|
||||
await testValid(2n ** 63n - 1n - BigInt(length), [ 'EFBIG', 'EOVERFLOW']);
|
||||
await testInvalid('ERR_OUT_OF_RANGE', 2n ** 63n);
|
||||
await testInvalid('ERR_OUT_OF_RANGE', 2n ** 63n - BigInt(length));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user