Hi,

In ES5 "15.11.4.4 Error.prototype.toString()" states:

    6. If msg is undefined, then let R be msg.

I'm pretty sure that should say:

    6. If msg is undefined, then let R be name.

ie. if an Error object does not have a message property, then toString() will return the value of the name property, or "Error" if it doesn't have a name property either. This is what Mozilla currently does.

Cheers,

Michael

--
Print XML with Prince!
http://www.princexml.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to