jsonpatch-js icon indicating copy to clipboard operation
jsonpatch-js copied to clipboard

InvalidPatchError does not have a call stack

Open felixfbecker opened this issue 8 years ago • 0 comments

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

felixfbecker avatar May 02 '17 10:05 felixfbecker