blob: 86889e43727b55e78cb76c3544c9751824d18963 [file] [log] [blame]
// 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.indexof
es5id: 15.4.4.14-9-8
description: Array.prototype.indexOf must return correct index (Array)
---*/
var b = new Array("0,1");
var a = new Array(0,b,"0,1",3);
assert.sameValue(a.indexOf(b.toString()), 2, 'a.indexOf(b.toString())');
assert.sameValue(a.indexOf("0,1"), 2, 'a.indexOf("0,1")');