feat: 对象字面量 spread({...obj} 展开可枚举自有属性)

This commit is contained in:
2026-08-08 11:24:09 +08:00
parent ab979dc47b
commit 6c29515624
10 changed files with 251 additions and 63 deletions
+4
View File
@@ -1351,6 +1351,10 @@ impl Vm {
self.dispatch_rest_object(rd, a)?;
}
OpCode::SPREAD_OBJECT => {
self.dispatch_spread_object(rd, a)?;
}
OpCode::THROW => match self.dispatch_throw(rd) {
Ok(true) => continue,
Ok(false) => {}