Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

serializeLineTrace

function serializeLineTrace(trace, settings?): SerializedLineTrace;

Defined in: packages/engine/src/worker/serialize.ts:254

Project a line trace (ExpressionEngine.traceLine) onto its DTO, following every input. The engine already bounds a trace’s depth and size (maxDepth, maxLines); the walk here is a loop over an explicit stack all the same, so no trace can exhaust the call stack on the way across.

ParameterType
traceLineTrace
settings?FormattingSettings

SerializedLineTrace