Skip to main content
Deno 2 is finally 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.28.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