Skip to content

Commit

Permalink
Error.isError: Fix test bugs (#4308)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb authored Nov 5, 2024
1 parent ab69bd4 commit a2f43d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/built-ins/Error/isError/bigints.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ features: [Error.isError, BigInt]

assert.sameValue(Error.isError(0n), false);
assert.sameValue(Error.isError(42n), false);
assert.sameValue(Error.isError(new BigInt(0)), false);
assert.sameValue(Error.isError(new BigInt(42)), false);
assert.sameValue(Error.isError(BigInt(0)), false);
assert.sameValue(Error.isError(BigInt(42)), false);
2 changes: 1 addition & 1 deletion test/built-ins/Error/isError/error-subclass.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ assert.sameValue(Error.isError(new MyURIError()), true);
if (typeof AggregateError !== 'undefined') {
class MyAggregateError extends AggregateError {}

assert.sameValue(Error.isError(new MyAggregateError()), true);
assert.sameValue(Error.isError(new MyAggregateError([])), true);
}

if (typeof SuppressedError !== 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/Error/isError/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ description: >
features: [Error.isError, Symbol]
---*/

assert.sameValue(Error.isError(new Symbol()), false);
assert.sameValue(Error.isError(Symbol()), false);

0 comments on commit a2f43d6

Please sign in to comment.