Skip to content

Commit

Permalink
fix: is_reserved_keyword_or_global_object
Browse files Browse the repository at this point in the history
  • Loading branch information
7086cmd committed Jul 26, 2024
1 parent 5c40dad commit 0ed80ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
target/
**/*.rs.bk
.idea

/node_modules/
/website/node_modules/
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_syntax/src/keyword.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0ed80ce

Please sign in to comment.