blob: bfabd45dfd3910db17bf204ecaf0a4d926a68dd0 (
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.
/*---
esid: sec-array.prototype.lastindexof
description: >
Array.prototype.lastIndexOf - element to be retrieved is own data
property that overrides an inherited accessor property on an Array
---*/
Object.defineProperty(Array.prototype, "0", {
get: function() {
return false;
},
configurable: true
});
assert.sameValue([Number].lastIndexOf(Number), 0, '[Number].lastIndexOf(Number)');
reportCompare(0, 0);
|