stack-frame

0.4.0 • Public • Published

stack-frame

A stack frame.

API

ScriptLine

A container holding a script line.

lineNumber

The line number of this line of source.

Type: number

content

The content (or value) of this line of source.

Type: string

highlight

Whether or not this line should be highlighted. Particularly useful for error reporting with context.

Type: boolean

StackFrame

A representation of a stack frame.

getFunctionName

Returns the name of this function.

Returns (string | null)

getSource

Returns the source of the frame. This contains the file name, line number, and column number when available.

Returns string

toString

Returns a pretty version of this stack frame.

Returns string

Readme

Keywords

none

Package Sidebar

Install

npm i stack-frame

Weekly Downloads

23

Version

0.4.0

License

MIT

Last publish

Collaborators

  • timer