Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
Push Crowdin Translations / update-crowdin (push) Has been cancelled
Fetch Crowdin Translations / update-crowdin (push) Has been cancelled
2 lines
1.0 KiB
JavaScript
2 lines
1.0 KiB
JavaScript
const fs=require("fs"),path=require("path"),{pathToFileURL}=require("url"); const build=path.resolve(process.argv[2]||"build-web/configure/bin"); async function main(){globalThis.__dirname=`${build}${path.sep}`;globalThis.require=require;const m=await import(pathToFileURL(path.join(build,"FreeCADWebPointsRuntimeProbe.js")));const p=await m.default({wasmBinary:fs.readFileSync(path.join(build,"FreeCADWebPointsRuntimeProbe.wasm"))});const c=(n,t="number")=>p.ccall(n,t);const r={run:c("fc_web_points_recovery"),error:c("fc_web_points_recovery_error","string"),validBefore:c("fc_web_points_recovery_valid_before"),validInvalid:c("fc_web_points_recovery_valid_invalid"),validAfter:c("fc_web_points_recovery_valid_after"),beforeMinX:c("fc_web_points_recovery_before_min_x"),afterMinX:c("fc_web_points_recovery_after_min_x")};if(r.run!==1||r.error!==""||r.validBefore!==3||r.validInvalid!==2||r.validAfter!==3||r.beforeMinX!==r.afterMinX)throw Error(JSON.stringify(r));console.log(JSON.stringify(r));}main().catch(e=>{console.error(e);process.exitCode=1});
|