docs: 补充注释与格式化

This commit is contained in:
爱特每羊队
2026-08-06 23:10:27 +08:00
parent 4e0fd762c2
commit 328b8a3ddc
156 changed files with 2393 additions and 1687 deletions
+2 -3
View File
@@ -37,9 +37,8 @@ fn smoke_loop_with_variables() {
#[test]
fn smoke_try_catch() {
let (info, cfg, _) = run_liveness(
"function x() {} function y(e) {} function f() { try { x(); } catch (e) { y(e); } } f()",
);
let (info, cfg, _) =
run_liveness("function x() {} function y(e) {} function f() { try { x(); } catch (e) { y(e); } } f()");
// entry 块 liveIn 不含 reg 0(异常边 reg0 截断在真实产物上成立)
assert!(!info.block_live_in[cfg.entry][0], "entry 块 liveIn 不得含 reg0");
}