| 24 | } |
| 25 | |
| 26 | void logArrayOOB(const ErrCode &Code, const uint32_t Idx, const uint32_t Cnt, |
| 27 | const RefVariant &Ref) noexcept { |
| 28 | if (Code == ErrCode::Value::ArrayOutOfBounds) { |
| 29 | const auto *Inst = Ref.getPtr<Runtime::Instance::ArrayInstance>(); |
| 30 | spdlog::error(ErrInfo::InfoBoundary(static_cast<uint64_t>(Idx), Cnt, |
| 31 | Inst->getLength())); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | void logDoubleArrayOOB(const ErrCode &Code, const uint32_t Idx1, |
| 36 | const uint32_t Cnt1, const RefVariant &Ref1, |
no test coverage detected