Error.isError: fix remaining issues from #4304

Fixes #4304
This commit is contained in:
Jordan Harband 2024-11-06 08:32:17 +00:00 committed by Ms2ger
parent a2f43d68d4
commit 38d52c9a60
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ assert.sameValue(Error.isError(new other.TypeError()), true);
assert.sameValue(Error.isError(new other.URIError()), true);
if (typeof AggregateError !== 'undefined') {
assert.sameValue(Error.isError(new other.AggregateError()), true);
assert.sameValue(Error.isError(new other.AggregateError([])), true);
}
if (typeof SuppressedError !== 'undefined') {
assert.sameValue(Error.isError(new other.SuppressedError()), true);

View File

@ -17,7 +17,7 @@ assert.sameValue(Error.isError(new TypeError()), true);
assert.sameValue(Error.isError(new URIError()), true);
if (typeof AggregateError !== 'undefined') {
assert.sameValue(Error.isError(new AggregateError()), true);
assert.sameValue(Error.isError(new AggregateError([])), true);
}
if (typeof SuppressedError !== 'undefined') {
assert.sameValue(Error.isError(new SuppressedError()), true);