jsonpatch-js
jsonpatch-js copied to clipboard
InvalidPatchError does not have a call stack
The error.stack property is missing. Looks like CoffeeScript's "inheritance" just sets the prototype and the constructor does not contain a super() call, so the native constructor of Error is never called, which means no stack trace is captured.
https://github.com/bruth/jsonpatch-js/blob/master/jsonpatch.js#L4