feat: suspend managed calls on generic awaitable operands

This commit is contained in:
2026-10-23 20:14:15 +08:00
parent b33d322690
commit 16816c38c7
9 changed files with 90 additions and 10 deletions
+3
View File
@@ -35,6 +35,7 @@ pub enum Opcode {
BuildMap = 27,
MakeFunction = 28,
BuildClass = 29,
Await = 30,
ExtendedArg = 255,
}
@@ -71,6 +72,7 @@ impl Opcode {
27 => Self::BuildMap,
28 => Self::MakeFunction,
29 => Self::BuildClass,
30 => Self::Await,
255 => Self::ExtendedArg,
_ => return None,
})
@@ -85,6 +87,7 @@ impl Opcode {
| Self::ReturnValue
| Self::ToBool
| Self::UnaryNot
| Self::Await
| Self::BuildClass
)
}