Fail fuzzing on internal errors (#366)
This commit is contained in:
parent
6b0fc174d8
commit
6430d38a6a
@ -1,5 +1,9 @@
|
||||
use common::*;
|
||||
|
||||
pub fn compile(text: &str) {
|
||||
Parser::parse(text).ok();
|
||||
if let Err(error) = Parser::parse(text) {
|
||||
if let CompilationErrorKind::Internal{..} = error.kind {
|
||||
panic!("{}", error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user