mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
Fix the self-hosting build of the arena runtime
This commit is contained in:
@@ -438,7 +438,11 @@ export function analyzeRegionGroups(mod: IrModule): RegionGroups {
|
||||
const info: UseInfo = {};
|
||||
const use = useOf(parents[index]!, parents.slice(0, index), false, info);
|
||||
if (use !== "internal") {
|
||||
Object.assign(out, info);
|
||||
// Field by field: an Object.assign onto a record makes the
|
||||
// self-hosted compiler read class and record properties dynamically.
|
||||
if (info.bound !== undefined) out.bound = info.bound;
|
||||
if (info.at !== undefined) out.at = info.at;
|
||||
if (info.target !== undefined) out.target = info.target;
|
||||
return use;
|
||||
}
|
||||
index = info.at!;
|
||||
|
||||
Reference in New Issue
Block a user