exec

abstract fun exec(cx: Context, scope: Scriptable, thisObj: Scriptable): Any?

Runs the script with thisObj as its this value.

cx has to be the Context associated with the calling thread.


open fun exec(cx: Context, scope: Scriptable): Any?

Deprecated

Use exec(cx, scope, thisObj)

Replace with

exec(cx, scope, scope)

Kept from upstream, where it exists for scripts compiled by an older release.