mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
- 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.
8 lines
347 B
TypeScript
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));
|