blob: 8c8cc1beb401419e69b63ecb1df3f3abc394cf8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Tuple.prototype.indexOf - 'length' is own data property that
overrides an inherited data property on an Tuple
---*/
var target = #[];
Tuple.prototype.length = 0;
assertEq(#[0, target].indexOf(target), 1, '#[0, target].indexOf(target)');
reportCompare(0, 0);
|