Files
FreeCADWasmDev/tools/business-report.mjs
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

8 lines
347 B
JavaScript

/** Flush the complete structured report before exiting a pthread-backed case. */
export async function writeBusinessReport(report, stream = process.stdout) {
const bytes = Buffer.from(JSON.stringify(report) + "\n", "utf8");
await new Promise((resolve, reject) => {
stream.write(bytes, error => error ? reject(error) : resolve());
});
}