mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[isoltest] Fixes exception handling while parsing literals.
This commit is contained in:
parent
e206ad6c24
commit
fe15db6537
@ -252,8 +252,6 @@ Parameter TestFileParser::parseParameter()
|
||||
parameter.alignment = Parameter::Alignment::Right;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (accept(Token::Sub, true))
|
||||
{
|
||||
parameter.rawString += formatToken(Token::Sub);
|
||||
@ -346,11 +344,6 @@ Parameter TestFileParser::parseParameter()
|
||||
expect(Token::RParen);
|
||||
parameter.rawString += formatToken(Token::RParen);
|
||||
}
|
||||
}
|
||||
catch (std::exception const&)
|
||||
{
|
||||
throw Error(Error::Type::ParserError, "Literal encoding invalid.");
|
||||
}
|
||||
|
||||
return parameter;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user