Documentation ¶
Index ¶
- type VM
- func (vm *VM) Call(item string, this interface{}, args ...interface{}) (otto.Value, error)
- func (vm *VM) Compile(filename string, src interface{}) (*otto.Script, error)
- func (vm *VM) CompileWithSourceMap(filename string, src, sm interface{}) (*otto.Script, error)
- func (vm *VM) Get(key string) (otto.Value, error)
- func (vm *VM) MakeCustomError(name, message string) otto.Value
- func (vm *VM) Run(src interface{}) (otto.Value, error)
- func (vm *VM) Set(key string, val interface{}) error
- func (vm *VM) ToValue(value interface{}) (otto.Value, error)
- func (vm *VM) UnsafeVM() *otto.Otto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VM ¶
VM implements concurrency safe wrapper to otto's VM object.
func (*VM) Call ¶
Call attempts to call the internal call function for the giving response associated with the proper values.
func (*VM) CompileWithSourceMap ¶
CompileWithSourceMap parses given source with source map and returns otto.Script.
func (*VM) MakeCustomError ¶
MakeCustomError allows to create a new Error object.
Click to show internal directories.
Click to hide internal directories.