diff --git a/API/hermes/inspector/chrome/CDPHandler.cpp b/API/hermes/inspector/chrome/CDPHandler.cpp index aa835b19621..17f2b43157f 100644 --- a/API/hermes/inspector/chrome/CDPHandler.cpp +++ b/API/hermes/inspector/chrome/CDPHandler.cpp @@ -1405,6 +1405,9 @@ void CDPHandlerImpl::handle(const m::runtime::EnableRequest &req) { } void CDPHandlerImpl::handle(const m::runtime::EvaluateRequest &req) { + if (!validateExecutionContext(req.id, req.contextId)) { + return; + } { pendingEvals_.push( {req.id,