Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix asyncio
  • Loading branch information
youknowone committed Feb 2, 2026
commit 830dcf3bd9a88235147e2e61f05811b0af1cc5ff
20 changes: 18 additions & 2 deletions crates/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2952,7 +2952,14 @@ impl Compiler {
target: cleanup_end
}
);
self.push_fblock(FBlockType::HandlerCleanup, cleanup_end, cleanup_end)?;
self.push_fblock_full(
FBlockType::HandlerCleanup,
cleanup_end,
cleanup_end,
FBlockDatum::ExceptionName(
name.as_ref().unwrap().as_str().to_owned(),
),
)?;
Some(cleanup_end)
} else {
// no SETUP_CLEANUP for unnamed handler
Expand Down Expand Up @@ -3324,7 +3331,16 @@ impl Compiler {
target: handler_except_block
}
);
self.push_fblock(FBlockType::HandlerCleanup, next_block, end_block)?;
self.push_fblock_full(
FBlockType::HandlerCleanup,
next_block,
end_block,
if let Some(alias) = name {
FBlockDatum::ExceptionName(alias.as_str().to_owned())
} else {
FBlockDatum::None
},
)?;

// Execute handler body
self.compile_statements(body)?;
Expand Down