Function capture

  • Runs Error.captureStackTrace if running V8 to clean up the error stack trace.

    Type Parameters

    • T extends Error

    Parameters

    • error: T

    Returns T