Frida Docs Unified
    Preparing search index...
    • Evaluates the given JavaScript source in the global scope. Useful for agents that want to support loading user-provided scripts inside their own script. The two benefits over simply using eval() is that the script filename can be provided, and source maps are supported — both inline and through Script.registerSourceMap().

      Parameters

      • name: string

        Name used in future stack traces, e.g. /plugins/tty.js.

      • source: string

        JavaScript source code to be evaluated.

      Returns any

      The resulting value of the evaluated code.