mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
- Derive builtin call names from shared signatures and keep call semantics with their ABI contracts. - Separate runtime dependency detection, exception metadata, and library policy from the core IR while preserving existing exports. - Enforce the frontend signature boundary and validate native compilation and policy behavior.
7 lines
348 B
TypeScript
7 lines
348 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { deserializeModule } from "../../../packages/compiler/src/ir/serialize.js";
|
|
import { moduleRuntimeFeatures } from "../../../packages/compiler/src/ir/runtime-features.js";
|
|
|
|
const mod = deserializeModule(readFileSync(process.argv[2]!, "utf8"));
|
|
console.log(JSON.stringify(moduleRuntimeFeatures(mod)));
|