2024-10-15 19:20:51 +02:00
|
|
|
// Copyright (C) 2024 Jordan Harband. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-error.iserror
|
|
|
|
description: >
|
|
|
|
Returns false on bigints
|
2024-10-17 17:31:54 +02:00
|
|
|
features: [Error.isError, BigInt]
|
2024-10-15 19:20:51 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
assert.sameValue(Error.isError(0n), false);
|
|
|
|
assert.sameValue(Error.isError(42n), false);
|
2024-11-05 17:17:39 +01:00
|
|
|
assert.sameValue(Error.isError(BigInt(0)), false);
|
|
|
|
assert.sameValue(Error.isError(BigInt(42)), false);
|