Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidPatchError does not have a call stack #28

Open
felixfbecker opened this issue May 2, 2017 · 0 comments
Open

InvalidPatchError does not have a call stack #28

felixfbecker opened this issue May 2, 2017 · 0 comments

Comments

@felixfbecker
Copy link

felixfbecker commented May 2, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant