Skip to content

Commit 12f8a33

Browse files
committed
aml: handle transparent references in return values
1 parent c3efed1 commit 12f8a33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aml/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ where
460460
}
461461
Opcode::Return => {
462462
let [Argument::Object(object)] = &op.arguments[..] else { panic!() };
463+
let object = object.clone().unwrap_transparent_reference();
463464

464465
if let Some(last) = self.context_stack.lock().pop() {
465466
context = last;

0 commit comments

Comments
 (0)