blob: de50f30fcb730b535cf6988cb2660e36d9bfdf18 [file] [log] [blame]
// 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');