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.
Evaluates the given JavaScript
sourcein the global scope. Useful for agents that want to support loading user-provided scripts inside their own script. The two benefits over simply usingeval()is that the script filename can be provided, and source maps are supported — both inline and throughScript.registerSourceMap().