feat: 支持 try-catch 语法字节码执行

This commit is contained in:
爱特每羊队
2026-06-07 22:00:51 +08:00
parent bd70fecea5
commit bd7e4f78c2
5 changed files with 223 additions and 16 deletions
+1 -3
View File
@@ -127,9 +127,7 @@ fn hash_statement(stmt: &Statement, h: &mut rustc_hash::FxHasher) {
}
if let Some(catch) = &ts.handler {
if let Some(param) = &catch.param {
if let oxide_parser::BindingPattern::BindingIdentifier(bi) =
&param.pattern
{
if let oxide_parser::BindingPattern::BindingIdentifier(bi) = &param.pattern {
bi.name.as_str().hash(h);
}
}