Script.this - multiple declarations

Function Script.this

Construct a new script given its source code and load it, executing its outer-most scope in the given machine.

this (
  Machine machine,
  string source,
  string* path = null,
  ScriptKind kind = cast(ScriptKind)0
);

Throws

JSParseException when the script fails to parse

Throws

JSException when the JS VM is aborted with the xsUnhandledExceptionExit status while executing the script's outer-most scope

Function Script.this

Construct a script given compiled VM byte code and load it, executing its outer-most scope in the given machine.

this (
  Machine machine,
  const(txScript*) byteCode,
  ScriptKind kind = cast(ScriptKind)0
);

Throws

JSException when the JS VM is aborted with the xsUnhandledExceptionExit status while executing the script's outer-most scope