Skip to content

Add defensive code #225

Description

@doubleUTF

var stackframes = _filtered(ErrorStackParser.parse(error), opts.filter);

Would it be prudent to add defensive code checking here to make sure ErrorStackParser is not null when this function is being called? In my production, it's possible to invoke fromError when ErrorStackParser is not defined, which causes unhandled JS errors.

Activity

  1. niemyjski commented on Feb 24, 2021

    @niemyjski

    Seems like the real issue is that ErrorStackParser is not set, can you submit a test case or snippet that will reproduce this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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