JSScript

class JSScript(val descriptor: JSDescriptor<JSScript>, val homeObject: Scriptable?) : Script, ScriptOrFn<JSScript>

A compiled script.

Constructors

Link copied to clipboard
constructor(descriptor: JSDescriptor<JSScript>, homeObject: Scriptable?)

Properties

Link copied to clipboard
Link copied to clipboard
open override val descriptor: JSDescriptor<JSScript>
Link copied to clipboard
open override val homeObject: Scriptable?

Functions

Link copied to clipboard
open override fun exec(cx: Context, scope: Scriptable, thisObj: Scriptable): Any?

Runs the script with thisObj as its this value.

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

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