[core] Fix macOS clang exception error in expression-tests/to-number/2-ary
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user