style: 自动格式化

This commit is contained in:
2026-10-12 04:52:56 +00:00
parent 15c6e1db6c
commit e381ad2318
2 changed files with 36 additions and 76 deletions
+1 -5
View File
@@ -384,11 +384,7 @@ fn block_fn_suppressed_by_destructured_param_leaf() {
// 撞解构叶名:叶名绑定(1)+ 块函数物化自写(1)= 2,无外层 var 写回。
let suppressed = emit_ir("function f({x}) { { function x() { return 1; } } return 2; }");
let f = &suppressed.nested[0];
assert_eq!(
count_op(&f.insts, OpCode::STORE_VAR),
2,
"撞解构叶名的块函数被抑制:无外层 var 写回"
);
assert_eq!(count_op(&f.insts, OpCode::STORE_VAR), 2, "撞解构叶名的块函数被抑制:无外层 var 写回");
// 非抑制对照:入口 undefined 写(1)+ 块函数物化自写(1)+ 外层 var 写回(1)= 3。
let control = emit_ir("function f() { { function y() { return 1; } } return 2; }");