diff --git a/.gitignore b/.gitignore index c2d89efbc6cca..e74357ea79ebb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ target/ **/*.rs.bk +.idea /node_modules/ /website/node_modules/ diff --git a/crates/oxc_syntax/src/keyword.rs b/crates/oxc_syntax/src/keyword.rs index 39f077713d104..bc556413f8810 100644 --- a/crates/oxc_syntax/src/keyword.rs +++ b/crates/oxc_syntax/src/keyword.rs @@ -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]