blob: 4cdf4d3f044a0ab3430e34d844d921951fefe08e [file] [log] [blame]
Error.prototype.name: Error
Error.prototype.message:
Error.prototype.toString(): [object Error]
noMessage.name: Error
noMessage.message:
noMessage.toString(): [object Error]
withMessage.name: Error
withMessage.message: I have a message for you...
withMessage.toString(): [object Error]
Changing Error.prototype.name to TryNewName...
Error.prototype.name: TryNewName
withMessage.name: TryNewName
Message: Range Error's prototype