feat: rest 参数(function f(...args)),实参区收集数组

This commit is contained in:
2026-08-10 00:33:25 +08:00
parent 5a9a46483d
commit 85c192a747
10 changed files with 184 additions and 8 deletions
+1
View File
@@ -242,6 +242,7 @@ impl Inst {
| OpCode::NEW_OBJECT
| OpCode::NEW_ARRAY
| OpCode::CREATE_ARGUMENTS
| OpCode::CREATE_REST_ARRAY
| OpCode::NOP => {}
// 变量读写:LOAD_VAR/STORE_VAR/CELL_GET 读 a(None→0)
OpCode::LOAD_VAR | OpCode::STORE_VAR | OpCode::CELL_GET => {