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

Way to convert StackFrames back into a traditional Error stack #218

Open
robross0606 opened this issue Mar 5, 2020 · 0 comments
Open

Way to convert StackFrames back into a traditional Error stack #218

robross0606 opened this issue Mar 5, 2020 · 0 comments

Comments

@robross0606
Copy link

The API provides a way to parses an Error.stack into an array of StackFrame. However, as far as I can tell, it does not provide a way to convert an array of StackFrame back into a simple Error.stack.

Expected Behavior

The API should be able to convert either direction between an array of StackFrame and Error.stack.

Current Behavior

The API can only convert Error.stack into an array of StackFrame.

Context

There are times you need to generate an array of StackFrame and then push that into a regular Error object for usage downstream by code that does not know how to handle StackFrame objects.

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

1 participant