Function.prototype.toString ( )

When the toString method is called with an object func as its thisValue, the following steps are taken:

  1. If func is a Bound Function exotic object, then return an implementation-dependent string source code representation of func. The representation must conform to the rules below. It is implementation dependent whether the representation includes bound function information or information about the target function.
  2. If Type(func) is Object and is either a built-in function object or has an [[ECMAScriptCode]] internal slot, then return an implementation-dependent string source code representation of func. The representation must conform to the rules below.
  3. Throw a TypeError exception.

toString Representation Requirements:

NativeFunction : function BindingIdentifieropt ( FormalParameters ) { [ native code ] }