summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/findLastIndex/call-with-boolean.js
blob: d9565b564170b1f5cc5caf2c4a216a1a7ee1924a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2021 Microsoft. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-array.prototype.findlastindex
description: Array.prototype.findLastIndex applied to boolean primitive.
features: [array-find-from-last]
---*/

assert.sameValue(
  Array.prototype.findLastIndex.call(true, () => {}),
  -1,
  'Array.prototype.findLastIndex.call(true, () => {}) must return -1'
);
assert.sameValue(
  Array.prototype.findLastIndex.call(false, () => {}),
  -1,
  'Array.prototype.findLastIndex.call(false, () => {}) must return -1'
);

reportCompare(0, 0);