mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +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/
|
target/
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
.idea
|
||||||
|
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/website/node_modules/
|
/website/node_modules/
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use phf::{phf_set, Set};
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_reserved_keyword_or_global_object(s: &str) -> bool {
|
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]
|
#[inline]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue