summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-10.js
blob: 5d05f5291e643d8ee2ece6049df3409cbffab11f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.4.4.15-8-b-ii-10
description: >
    Array.prototype.lastIndexOf - both array element and search
    element are booleans, and they have same value
includes: [runTestCase.js]
---*/

function testcase() {

        return [false, true].lastIndexOf(true) === 1;
    }
runTestCase(testcase);