blob: 755711e5eab954205c8bddcf269b5d68d0956484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.some
description: Array.prototype.some applied to boolean primitive
---*/
assert.sameValue(
Array.prototype.some.call(true, () => {}),
false,
'Array.prototype.some.call(true, () => {}) must return false'
);
assert.sameValue(
Array.prototype.some.call(false, () => {}),
false,
'Array.prototype.some.call(false, () => {}) must return false'
);
reportCompare(0, 0);
|