Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/error_stack.ts>setPrepareStackTrace

A modern runtime for JavaScript and TypeScript.
Go to Latest
function setPrepareStackTrace
import { setPrepareStackTrace } from "https://deno.land/x/deno@v0.30.0/cli/js/error_stack.ts";

Sets the prepareStackTrace method on the Error constructor which will op into Rust to remap source code for caught errors where the .stack is being accessed.

See: https://v8.dev/docs/stack-trace-api

Parameters

ErrorConstructor: Error