blob: 1c689109155ce845de2e8fc24fe463c18c8a0f9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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-i-3
description: >
Array.prototype.lastIndexOf - element to be retrieved is own data
property that overrides an inherited data property on an Array
includes: [runTestCase.js]
---*/
function testcase() {
try {
Array.prototype[0] = Object;
return [Object.prototype].lastIndexOf(Object.prototype) === 0;
} finally {
delete Array.prototype[0];
}
}
runTestCase(testcase);
|