JavaScript: The Definitive Guide

24.77. Error.toString( ): convert an Error object to a string

ECMAScript v3: Overrides Object.toString( )

24.77.1. Synopsis

error. toString( )

24.77.1.1. Returns

An implementation-defined string. The ECMAScript standard does not specify anything about the return value of this method, except that it is a string. Notably, it does not require the returned string to contain the error name or the error message.

Категории