Functions

The following functions are available globally.

  • runScript(_:_:) Asynchronous

    Executes a JavaScript Pipeable script.

    Throws

    A ScriptError if the script execution fails.

    Declaration

    Swift

    public func runScript(_ script: String, _ page: PipeablePage? = nil) async throws -> JSValue

    Return Value

    The result of the script execution.