Skip to main content

Module stack

Module stack 

Source
Expand description

Where a JavaScript error happened, from V8’s stack text: the first frame inside the project and outside node_modules, else the first frame.

Structs§

Frame
One stack frame’s place.

Functions§

frames
The frames of stack, in order, that name a file. Forms read: at fn (file:///abs/x.js:14:9), at file:///abs/x.js:14:9, at /abs/x.js:14:9, at fn (/abs/x.js:14:9), at async fn (...).
pick
The frame to report: the first inside root and outside node_modules, else the first.
syntax_header
A SyntaxError’s place, from the first line of util.inspect(error): file:///abs/x.mjs:3 (ES modules) or /abs/x.js:3 (CommonJS).