Skip to content

ParseError doesn't inherit from Error #326

Closed
@romanbsd

Description

@romanbsd

It has these implications:

  1. There's no stack trace
  2. e = new ParseError(); e instanceof Error === false
    We noticed this while using Sentry's raven for error reporting.

References:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions