Skip to content

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

Description

@robross0606

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.

Activity

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