[core] Fix macOS clang exception error in expression-tests/to-number/2-ary

This commit is contained in:
Bruno de Oliveira Abinader
2019-06-14 12:42:24 +03:00
parent 1a9e07e4ed
commit 78e5a264e0

View File

@@ -25,7 +25,7 @@ EvaluationResult toNumber(const Value& v) {
[](const std::string& s) -> optional<double> {
try {
return util::stof(s);
} catch (const std::exception&) {
} catch (...) {
return optional<double>();
}
},