mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 03:01:12 +08:00
feat: class 私有成员语义(字段/方法/访问器 + brand 检查 + 契约修复)
This commit is contained in:
@@ -537,7 +537,10 @@ fn compile_call_spread_emits_spread_opcodes() {
|
||||
"f(...args) should emit CALL_SPREAD"
|
||||
);
|
||||
assert!(
|
||||
module.bytecode.iter().any(|&i| opcode::opcode(i) == OpCode::NEW_EXPRESSION_SPREAD),
|
||||
module
|
||||
.bytecode
|
||||
.iter()
|
||||
.any(|&i| opcode::opcode(i) == OpCode::NEW_EXPRESSION_SPREAD),
|
||||
"new f(...args) should emit NEW_EXPRESSION_SPREAD"
|
||||
);
|
||||
// 无 spread 的调用不发 spread 变体
|
||||
|
||||
Reference in New Issue
Block a user