blob: eabf5af56835b431db570e1c509117d16da31cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.3.4.2_A14
description: >
The toString function is not generic; it throws a TypeError
exception if its this value is not a callable object.
---*/
assert.throws(TypeError, function() {
Function.prototype.toString.call({});
}, 'Function.prototype.toString.call({}) throws a TypeError exception');
reportCompare(0, 0);
|