Skip to content

InvalidPatchError does not have a call stack #28

@felixfbecker

Description

@felixfbecker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions