UNPKG

jiff

Version:

JSON diff and patch based on rfc6902

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