mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
The global-effects summary typed each library-call argument as a
structural `{ kind: string }`. The native compiler extracted that one
record arm from the IrType union and threw on bytes, array and other
arms with more fields, so `scriptc build --lib` failed with SC3004 for
integer-slot profiles that call, for example, `Buffer.alloc` or
`String.fromCharCode`. The helper now takes `IrType`, and the bootstrap
test compares native and Node sidecars for such a profile.
25 lines
586 B
JSON
25 lines
586 B
JSON
{
|
|
"profile_format": 1,
|
|
"name": "conformance-contract-int-libcall",
|
|
"entry": "lib.ts",
|
|
"emission": "llvm",
|
|
"abi": {
|
|
"prefix": "kl_",
|
|
"init_symbol": "kl_init",
|
|
"sink_register_symbol": "kl_set_panic_sink",
|
|
"collect_symbol": null,
|
|
"result_reset_symbol": null
|
|
},
|
|
"exports": [],
|
|
"sidecar": {
|
|
"wire_version": 1,
|
|
"abi_version": 1,
|
|
"snapshot_format": 1,
|
|
"build_id_symbol": "kl_build_id",
|
|
"abi_version_symbol": "kl_abi_version",
|
|
"model": "Model",
|
|
"msg": "Msg",
|
|
"integer_slots": [{ "slot": "Model.phase", "class": "i64" }]
|
|
}
|
|
}
|