Skip to content

eval/eval-result-lost-error

The error an evaluation raises when the transport hands back no result at all.

The harness’s evalWrapper answers every closure with a JSON envelope, an undefined result included, so a transport that returns nothing means the wrapper never answered: the page that ran the closure was replaced (a reload, or a renderer that died under it) while the closure ran. Before this type existed evalInObsidian handed the test undefined, and the failure surfaced later as an unrelated Cannot read properties of undefined.

Class Description
EvalResultLostError Thrown when an evaluation’s result never came back, because the page that ran it went away.
Interface Description
EvalResultLostErrorConstructorParams Parameters for the EvalResultLostError constructor.