From 0666b5e548c7a822cf488372cbf9e64ac07c0a05 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 6 Nov 2024 08:32:17 +0000 Subject: [PATCH] `Error.isError`: fix remaining issues from #4304 Fixes #4304 --- test/built-ins/Error/isError/errors-other-realm.js | 2 +- test/built-ins/Error/isError/errors.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/built-ins/Error/isError/errors-other-realm.js b/test/built-ins/Error/isError/errors-other-realm.js index 3e5d3e1f407..e96e2846052 100644 --- a/test/built-ins/Error/isError/errors-other-realm.js +++ b/test/built-ins/Error/isError/errors-other-realm.js @@ -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); diff --git a/test/built-ins/Error/isError/errors.js b/test/built-ins/Error/isError/errors.js index d061610660a..804ec361a39 100644 --- a/test/built-ins/Error/isError/errors.js +++ b/test/built-ins/Error/isError/errors.js @@ -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);