Merge pull request #460 from TiZCrocodile/support-for-WITH_CLEANUP_START,WITH_CLEANUP_FINISH

add support for `WITH_CLEANUP_START`,`WITH_CLEANUP_FINISH`
This commit is contained in:
Michael Hansen
2024-02-27 15:52:57 -08:00
committed by GitHub
3 changed files with 4 additions and 0 deletions

View File

@@ -1885,6 +1885,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
}
break;
case Pyc::WITH_CLEANUP:
case Pyc::WITH_CLEANUP_START:
{
// Stack top should be a None. Ignore it.
PycRef<ASTNode> none = stack.top();
@@ -1907,6 +1908,9 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
}
}
break;
case Pyc::WITH_CLEANUP_FINISH:
/* Ignore this */
break;
case Pyc::SETUP_EXCEPT_A:
{
if (curblock->blktype() == ASTBlock::BLK_CONTAINER) {

Binary file not shown.

Binary file not shown.