UNPKG

jiff

Version:

JSON diff and patch based on rfc6902

13 lines (11 loc) 377 B
module.exports = TestFailedError; function TestFailedError(message) { Error.call(this); this.name = this.constructor.name; this.message = message; if(typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(this, this.constructor); } } TestFailedError.prototype = Object.create(Error.prototype); TestFailedError.prototype.constructor = TestFailedError;