diff --git a/API/hermes/hermes.cpp b/API/hermes/hermes.cpp index 0a9fba13c00..19018f98227 100644 --- a/API/hermes/hermes.cpp +++ b/API/hermes/hermes.cpp @@ -1997,9 +1997,7 @@ void HermesRuntimeImpl::setPropertyValue( bool HermesRuntimeImpl::isArray(const jsi::Object &obj) const { auto res = llvh::isArray(runtime_, llvh::dyn_vmcast(phv(obj))); - if (LLVM_UNLIKELY(res == llvh::ExecutionStatus::EXCEPTION)) { - return false; - } + const_cast(this)->checkStatus(res.getStatus()); return *res; }