Skip to content

Add defensive code #225

Open
Open
@doubleUTF

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.

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