mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
fix(syntax): correct is_reserved_keyword_or_global_object's incorrect function calling. (#4484)
It may be a problem, but doesn't matter previously. Formerly, the `is_reserved_keyword_or_global_object` is `is_reserved_keyword(s) || is_reserved_keyword(s)`. I think it should be `is_reserved_keyword(s) || is_global_object(s)` according to its name. Also, the `.idea` may be because I am using RustRover, which may automatically create `.idea` folder. So I ignore it in `.gitignore`. I think I can contribute to `oxc` more when I am free.
This commit is contained in:
parent
5c40dadb14
commit
1667491868
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,5 +1,6 @@
|
|||
target/
|
||||
**/*.rs.bk
|
||||
.idea
|
||||
|
||||
/node_modules/
|
||||
/website/node_modules/
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use phf::{phf_set, Set};
|
|||
|
||||
#[inline]
|
||||
pub fn is_reserved_keyword_or_global_object(s: &str) -> bool {
|
||||
is_reserved_keyword(s) || is_reserved_keyword(s)
|
||||
is_reserved_keyword(s) || is_global_object(s)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Reference in a new issue