diff --git a/ecmascript/parser/src/lib.rs b/ecmascript/parser/src/lib.rs index de9cca84b7f..668fbfc6da8 100644 --- a/ecmascript/parser/src/lib.rs +++ b/ecmascript/parser/src/lib.rs @@ -160,7 +160,7 @@ impl Syntax { pub fn num_sep(self) -> bool { match self { - Syntax::Es(EsConfig { num_sep: true, .. }) => true, + Syntax::Es(EsConfig { num_sep: true, .. }) | Syntax::Typescript(..) => true, _ => false, } }