summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
blob: c6228091e4f384e59f3fb1bcf30323cb1afd43fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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.14-5-16
description: >
    Array.prototype.indexOf - value of 'fromIndex' is a string
    containing Infinity
includes: [runTestCase.js]
---*/

function testcase() {
        var arr = [];
        arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
        return arr.indexOf(true, "Infinity") === -1;
    }
runTestCase(testcase);