diff --git a/crates/swc_css_parser/src/error.rs b/crates/swc_css_parser/src/error.rs index a585d4d9b8d..c425cb6d29f 100644 --- a/crates/swc_css_parser/src/error.rs +++ b/crates/swc_css_parser/src/error.rs @@ -22,9 +22,6 @@ impl Error { } pub fn new(span: Span, kind: ErrorKind) -> Self { - if cfg!(debug_assertions) && span.is_dummy() { - panic!("parser should not create an error with dummy span") - } Error { inner: Box::new((span, kind)), }