blob: 2248f30798d611dbacd0873fc6ae5e9b544038ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// 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-13
description: Array.prototype.lastIndexOf applied to the JSON object
includes: [runTestCase.js]
---*/
function testcase() {
var targetObj = {};
try {
JSON[3] = targetObj;
JSON.length = 5;
return 3 === Array.prototype.lastIndexOf.call(JSON, targetObj);
} finally {
delete JSON[3];
delete JSON.length;
}
}
runTestCase(testcase);
|