summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/prototype/indexOf/fromIndex-infinity-string.js
blob: de5895aca393415a6b4d395d07c0941848289754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |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 - value of 'fromIndex' is a string
    containing -Infinity
---*/

assertEq(#[true].indexOf(true, "-Infinity"), 0);

reportCompare(0, 0);