Sakura Lang

D093 finalizer_failed

On the WASM runtime, a finalizer (the cleanup of Fs.with_file and similar) failed with an error.

A runtime defect: the running program stops with it; no compile phase reports it, and try cannot catch it. sakura explain D093 prints this explanation offline.

On the WASM runtime, a finalizer (the cleanup of Fs.with_file and similar) failed with an error. A finalizer may not raise; handle the error inside it (runtime/rt/ABI.md §6.4).

Runtime defects come from running programs, so compiler/tests/ui has no fixture for them; the explanation above names the repair.

Edit on GitHub