mirror of
https://github.com/morluto/rea
synced 2026-10-28 06:46:47 -04:00
fix(process): preserve environment snapshots and final cancellation
This commit is contained in:
@@ -550,6 +550,14 @@ export class JavaScriptAnalysisWorker {
|
||||
});
|
||||
}
|
||||
}
|
||||
if (result.ok && signal?.aborted === true) {
|
||||
const error = new AnalysisCancelledError(OPERATION, {
|
||||
cause: signal.reason,
|
||||
capturedOutput: this.#captured(),
|
||||
});
|
||||
this.#lastFailure = error;
|
||||
result = err({ error, javascript, module, projection });
|
||||
}
|
||||
if (this.#applicationProjectionFailure !== undefined)
|
||||
return result.ok
|
||||
? ok({
|
||||
|
||||
Reference in New Issue
Block a user