mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
feat: async/await 语法支持(AWAIT 帧快照挂起/恢复 + 微任务驱动 + AsyncFunction intrinsics)
This commit is contained in:
@@ -203,6 +203,8 @@ define_opcodes! {
|
||||
SUSPEND_BODY = 0x77 => "SUSPEND_BODY",
|
||||
// `yield*` 委托:rd=内层可迭代对象;委托完成值经 reg 0 交付(与 YIELD 同协议)。
|
||||
YIELD_STAR = 0x78 => "YIELD_STAR",
|
||||
// `await`:rd=被等待的值(PromiseResolve 包装);挂起异步帧,恢复值经 reg 0 交付。
|
||||
AWAIT = 0x79 => "AWAIT",
|
||||
|
||||
// ── 位运算 (0x80-0x8F) ──
|
||||
BIT_AND = 0x80 => "BIT_AND",
|
||||
|
||||
Reference in New Issue
Block a user