Script

@JSImport("vm", "Script") @native @JSType class Script extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
class Script

Value members

Constructors

def this(code: String)
def this(code: String, options: ScriptOptions)

Concrete methods

def runInContext(contextifiedSandbox: Context): Any
def runInContext(contextifiedSandbox: Context, options: RunningScriptOptions): Any
def runInNewContext(): Any
def runInNewContext(sandbox: Context): Any
def runInNewContext(sandbox: Context, options: RunningScriptOptions): Any
def runInNewContext(sandbox: Unit, options: RunningScriptOptions): Any
def runInThisContext(): Any

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var cachedDataRejected: UndefOr[Boolean]