(handler, target)
| 445 | // Throws VMError(OPNA) on either, the same error used elsewhere for |
| 446 | // boundary violations, so attackers learn nothing about internal state. |
| 447 | function validateHandlerTarget(handler, target) { |
| 448 | if (!thisReflectApply(thisWeakMapHas, handlerToTarget, [handler])) throw new VMError(OPNA); |
| 449 | if (thisReflectApply(thisWeakMapGet, handlerToTarget, [handler]) !== target) throw new VMError(OPNA); |
| 450 | } |
| 451 | |
| 452 | // Closure-scoped function to retrieve the factory from a handler. |
| 453 | // This is NOT a method on BaseHandler, so it cannot be called by attackers |
no outgoing calls
no test coverage detected
searching dependent graphs…