Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrThrown ¶
type ErrThrown struct {
// contains filtered or unexported fields
}
ErrThrown is returned where the input script from Run() throws a Javascript error.
type Options ¶
type Options struct { // OnEmit is an optional callback that handles emitted messages. OnEmit func(thing string) // OnConsoleLog is an optional callback that handles notice messages that // are intended for the console logger. OnLog func(msg string) // OnConsoleError is an optional callback that handles error messages that // are intended for the console logger. OnError func(msg string) // Dir is the working directory for the VM. Default is the same working // directory and currently running Go process. Dir string // Flags are the additional startup flags that are provided to the // "node" process. Flags []string }
Options for VM
Click to show internal directories.
Click to hide internal directories.