Files
scriptc/tests/fixtures/self-hosting/ffi-profile.ts
Chris Tate 3f56576644 feat(compiler): rebuild the frontend with native compiler stages (#568)
- Share frontend loading, package selection, contracts, and FFI parsing between Node and native clients.
- Preserve collection layouts and optional method returns while lowering long nullish chains without recursive stack growth.
- Rebuild the frontend from TypeScript through native lowering and C emission with matching output.
2026-09-29 07:45:18 -05:00

8 lines
347 B
TypeScript

import { loadFfiProfile } from "../../../packages/compiler/src/ffi/ffi-manifest.js";
const result = loadFfiProfile(process.argv[2]!);
// Compare byte contents independently of Node's Buffer.toJSON wrapper.
console.log(JSON.stringify(result.ok
? { ok: true, profile: result.profile, profileBytes: Array.from(result.profileBytes) }
: result));