summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/findLast/call-with-boolean.js
blob: 7f7a75ac7c8e71240cb8dfc9c61bc84e1f839eec (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.findlast
description: Array.prototype.findLast applied to boolean primitive.
features: [array-find-from-last]
---*/

assert.sameValue(
  Array.prototype.findLast.call(true, () => {}),
  undefined,
  'Array.prototype.findLast.call(true, () => {}) must return undefined'
);
assert.sameValue(
  Array.prototype.findLast.call(false, () => {}),
  undefined,
  'Array.prototype.findLast.call(false, () => {}) must return undefined'
);

reportCompare(0, 0);