| 77 | } |
| 78 | |
| 79 | inline bool IsUnsignedInteger(const Napi::Value &value) |
| 80 | { |
| 81 | if (!value.IsNumber()) |
| 82 | { |
| 83 | return false; |
| 84 | } |
| 85 | const auto doubleValue = value.ToNumber().DoubleValue(); |
| 86 | return doubleValue >= 0.0 && std::floor(doubleValue) == doubleValue; |
| 87 | } |
| 88 | |
| 89 | inline void ParseResult(const osrm::Status &result_status, osrm::json::Object &result) |
| 90 | { |
no outgoing calls
no test coverage detected