summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js
blob: bcec70206344204e409c2422b33f221b4fb00fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.4.2-1-2
description: >
    Object.prototype.toString - '[object Undefined]' will be returned
    when 'this' value is undefined
includes: [runTestCase.js]
---*/

function testcase() {
        return Object.prototype.toString.apply(undefined, []) === "[object Undefined]";
    }
runTestCase(testcase);