From e9f20877b7c17909ece37e880592709df7619875 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Mon, 20 Jul 2026 13:29:51 -0700 Subject: [PATCH] Revert "docs(evaluate): clarify exposeFunctions scope and lifetime (#41856)" This reverts commit 37b39b798589fcca525cb71ffa1a3191a6d2fd91. --- docs/src/api/params.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/api/params.md b/docs/src/api/params.md index bdce5366586ce..6a92a8474ab89 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -588,7 +588,7 @@ Function to be evaluated in the page context. * langs: js - `exposeFunctions` <[boolean]> -When set to `true`, functions passed inside [`param: arg`] are exposed in the page and can be called from the page function. Calling one returns a [Promise] of its result. Under the hood, each function is exposed via [`method: Page.exposeFunction`], so it is technically accessible from all frames and worlds of the page. Exposed functions are cleared upon the top-level navigation. Defaults to `false`, in which case functions are not serializable and passing one throws an error. +When set to `true`, functions passed inside [`param: arg`] are exposed in the page and can be called from the page function. Calling one returns a [Promise] of its result. The page-side functions are scoped to the execution context they were passed to and disappear when the page navigates. Defaults to `false`, in which case functions are not serializable and passing one throws an error, as before. ## js-evalonselector-pagefunction * langs: js