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

Add defensive code #225

Open
doubleUTF opened this issue Oct 16, 2020 · 1 comment
Open

Add defensive code #225

doubleUTF opened this issue Oct 16, 2020 · 1 comment

Comments

@doubleUTF
Copy link

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.

@niemyjski
Copy link

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
Labels
None yet
Development

No branches or pull requests

2 participants