oxc/crates/oxc_semantic/src
Cameron c4a2084f27
fix(linter) Fix panic when linting declaration files (#1014)
When linting declaration files, it panics here 


6628fc8d9c/crates/oxc_linter/src/rules/eslint/no_global_assign.rs (L57)

with this error:
```
index out of bounds: the len is 0 but the index is 0
```

Because it expects the array to have the root scope id inside (non zero
len)


0fcad27515/crates/oxc_semantic/src/scope.rs (L52-L54)
2023-10-21 09:25:32 +08:00
..
checker feat(semantic): check non-simple lhs expression of assignment expression (#994) 2023-10-14 23:40:10 +08:00
jsdoc perf(parser): lazily build trivia map instead of build in-place (#903) 2023-09-12 23:23:56 +08:00
module_record fix(semantic): make ExportDeclaration span accurate (#928) 2023-09-17 14:11:25 +00:00
binder.rs feat(minifier): re-enable mangler (#972) 2023-10-10 14:32:58 +08:00
builder.rs fix(linter) Fix panic when linting declaration files (#1014) 2023-10-21 09:25:32 +08:00
diagnostics.rs feat: add oxc_span crate (#323) 2023-04-27 21:51:15 +08:00
lib.rs feat(linter) eslint-unicorn catch error name (#984) 2023-10-12 11:06:46 +01:00
node.rs fix(semantic): nested references (#661) 2023-07-31 12:29:15 +08:00
reference.rs feat(minifier): partially re-enable minifier (#963) 2023-10-08 11:06:42 +08:00
scope.rs feat(transformer): add utils to make logical_assignment_operators pass (#1017) 2023-10-20 16:27:23 +08:00
symbol.rs feat(transformer): add utils to make logical_assignment_operators pass (#1017) 2023-10-20 16:27:23 +08:00