blob: 9e1bd0f062e43630bb865b431f4f49367e9b2207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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-1-4
description: Array.prototype.lastIndexOf applied to Boolean object
includes: [runTestCase.js]
---*/
function testcase() {
var obj = new Boolean(false);
obj.length = 2;
obj[1] = true;
return Array.prototype.lastIndexOf.call(obj, true) === 1;
}
runTestCase(testcase);
|