Class Script

A JavaScript program or entry point module.

class Script ;

Constructors

NameDescription
this (machine, source, path, kind) Construct a new script given its source code and load it, executing its outer-most scope in the given machine.
this (machine, byteCode, kind) Construct a script given compiled VM byte code and load it, executing its outer-most scope in the given machine.

Fields

NameTypeDescription
codeBuffer const(byte[])
hostsBuffer const(byte[])
kind const(ScriptKind)The kind of JS source code of this script.
path const(string)
symbolsBuffer const(byte[])