Documentation ¶
Overview ¶
Package dsljavascript allows running experiments written in JavaScript.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
VM wraps the *github.com/dop251/goja.Runtime. The zero value of this struct is invalid; please, use NewVM to construct.
func LoadExperiment ¶
LoadExperiment loads the given experiment file and returns a new VM primed to execute the experiment several times for several inputs.
func (*VM) ExperimentName ¶
ExperimentName returns the experiment name. Invoking this method before invoking LoadScript always produces an error.
func (*VM) ExperimentVersion ¶
ExperimentVersion returns the experiment version. Invoking this method before invoking LoadScript always produces an error.
Click to show internal directories.
Click to hide internal directories.