summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
blob: 07190e6d154b3d6901da0dae327d4e4758b00962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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-1-8
description: Array.prototype.indexOf applied to String object
includes: [runTestCase.js]
---*/

function testcase() {

        var obj = new String("null");

        return Array.prototype.indexOf.call(obj, 'l') === 2;
    }
runTestCase(testcase);