// 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_A13 | |
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(null); | |
}, 'Function.prototype.toString.call(null) throws a TypeError exception'); |