| 969 | |
| 970 | template<> |
| 971 | int32_t Value::checkedTo(ExceptionTracker& exceptionTracker) const { |
| 972 | if (!isNumber()) { |
| 973 | exceptionTracker.onError(Value::invalidTypeError(ValueType::Int, getType())); |
| 974 | return 0; |
| 975 | } |
| 976 | |
| 977 | return toInt(); |
| 978 | } |
| 979 | |
| 980 | template<> |
| 981 | int64_t Value::checkedTo(ExceptionTracker& exceptionTracker) const { |
nothing calls this directly
no test coverage detected