Skip to content

Allow Error serialization #1

@shortercode

Description

@shortercode

Not 100% how portable this is, but I think we might be able to serialize/deserialize errors like so:

class FrozenError extends Error {
  constructor (msg, stack) {
    super(msg);
    this.stack = stack;
  }
}

new FrozenError(realerror.message, realerror.stack);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions