mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Error.isError: Fix test bugs (#4308)
This commit is contained in:
parent
ab69bd4dd8
commit
a2f43d68d4
@ -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);
|
||||
|
@ -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') {
|
||||
|
@ -8,4 +8,4 @@ description: >
|
||||
features: [Error.isError, Symbol]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Error.isError(new Symbol()), false);
|
||||
assert.sameValue(Error.isError(Symbol()), false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user