function frameTable
frameTable(
frames: readonly Repl.Frame[],
palette: Theme
): string

The stack as gdb prints one: newest first, numbered from where it stopped, with a mark on the frame being read. What .backtrace prints, and the sibling of scopeTable.

import { frameTable } from './frames.ts';

const plain = { painter: () => (text: string) => text };
frameTable([{ index: 0, where: 'outer (a.ts:1:1)', selected: true }], plain);
// '> #0  outer (a.ts:1:1)'

Parameters

frames: readonly Repl.Frame[]
palette: Theme

Return Type

string

Usage

import { frameTable } from "lib/commands/repl/frames.ts";