fix: thunk & function
This commit is contained in:
@@ -98,11 +98,17 @@ impl Compile for ir::Attrs {
|
||||
comp.push(OpCode::AttrSet);
|
||||
for stc in self.stcs {
|
||||
stc.1.compile(comp);
|
||||
if !self.rec {
|
||||
comp.push(OpCode::CaptureEnv);
|
||||
}
|
||||
comp.push(OpCode::PushStaticAttr { name: stc.0 });
|
||||
}
|
||||
for dynamic in self.dyns {
|
||||
dynamic.0.compile(comp);
|
||||
dynamic.1.compile(comp);
|
||||
if !self.rec {
|
||||
comp.push(OpCode::CaptureEnv);
|
||||
}
|
||||
comp.push(OpCode::PushDynamicAttr)
|
||||
}
|
||||
if self.rec {
|
||||
|
||||
Reference in New Issue
Block a user