mirror of
https://github.com/swc-project/swc.git
synced 2024-10-05 04:39:06 +03:00
fix(css/parser): Remove a wrong assertion (#4641)
This commit is contained in:
parent
073ca87012
commit
84e4ca6c27
@ -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)),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user