From 0ed80ce59d8af8d11f715ca3f5f3f832431cf1ed Mon Sep 17 00:00:00 2001 From: Ethan Goh <7086cmd@gmail.com> Date: Fri, 26 Jul 2024 22:48:25 +0800 Subject: [PATCH] fix: `is_reserved_keyword_or_global_object` --- .gitignore | 1 + crates/oxc_syntax/src/keyword.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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]