mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
1 parent
0deb027e6b
commit
bc8d4e5876
1 file changed
+1
-1
@@ -38,7 +38,7 @@ impl UnresolvedReferencesStack {
|
||||
pub(crate) fn increment_scope_depth(&mut self) {
|
||||
self.current_scope_depth += 1;
|
||||
|
||||
// Grow stack if required to ensure `self.stack[self.depth]` is in bounds
|
||||
// Grow stack if required to ensure `self.stack[self.current_scope_depth]` is in bounds
|
||||
if self.stack.len() <= self.current_scope_depth {
|
||||
self.stack.push(UnresolvedReferences::default());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user