blob: 854d7ee3599d1a728950581b63748dac17025b22 (
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_A12
description: >
The Function.prototype.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(undefined);
}, 'Function.prototype.toString.call(undefined) throws a TypeError exception');
reportCompare(0, 0);
|