When I am trying to read the cache-hit variable inside JavaScript policy. JS policy execution got failed and I see the following error on Message processor System.log.
RhinoExecutor$TopLevelScope.print() : ReferenceError: "lookupcache" is not defined.
JavaScript policy JS File code:
if(lookupcache.{policy-name}.cachehit !==true){ ///code }
FYI information - LookUpCache policy is executing before JS policy.