X_E2E_EVALUATE_UNSUPPORTED
Means
a page.evaluate() closure cannot be sent into the browser
Typical cause
the closure is native or bound, declares a parameter, or its source is not an expression — there is nothing to send. Refused statically, before a round trip
Fix
rewrite as a zero-parameter closure over page globals only