summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js
blob: 616a35f091775520235fdb30af3e4c6c35ef5b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2011 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.4.2_A16
description: >
    Let O be the result of calling ToObject passing the this value as
    the argument.
---*/

if (Object.prototype.toString.call('foo') !== "[object String]") {
  $ERROR('Let O be the result of calling ToObject passing the this ' +
    'value as the argument.');
}