mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 11:41:13 +08:00
fix: 块级函数声明补 web-compat 外层 var 绑定实例化与声明点写回
This commit is contained in:
@@ -70,7 +70,7 @@ impl SymbolTable {
|
||||
}
|
||||
}
|
||||
|
||||
fn find_var_target_scope(&self) -> usize {
|
||||
pub(crate) fn find_var_target_scope(&self) -> usize {
|
||||
for (i, scope) in self.scopes.iter().enumerate().rev() {
|
||||
if scope.kind == ScopeKind::FunctionScope {
|
||||
return i;
|
||||
|
||||
Reference in New Issue
Block a user