mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
fix(es/transforms/compat): Change error message (#2500)
swc_ecma_transforms_compat: - `classes`: Use `unreachable` instead of `unimplemented ` for static blocks.
This commit is contained in:
parent
c29a6e11c9
commit
52dfb55816
@ -404,7 +404,9 @@ where
|
|||||||
// We just strip this.
|
// We just strip this.
|
||||||
}
|
}
|
||||||
ClassMember::Empty(..) => {}
|
ClassMember::Empty(..) => {}
|
||||||
ClassMember::StaticBlock(..) => unimplemented!("stage 3 class static blocks"),
|
ClassMember::StaticBlock(..) => unreachable!(
|
||||||
|
"classes pass: static blocks\nstatic_blocks pass should remove this"
|
||||||
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -721,7 +721,9 @@ impl ClassProperties {
|
|||||||
})))
|
})))
|
||||||
}
|
}
|
||||||
|
|
||||||
ClassMember::StaticBlock(..) => unimplemented!("stage 3 class static blocks"),
|
ClassMember::StaticBlock(..) => unreachable!(
|
||||||
|
"classes pass: static blocks\nstatic_blocks pass should remove this"
|
||||||
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user