vm

package
v1.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(runtime *goja.Runtime) error

Types

type Vm

type Vm struct {
	// contains filtered or unexported fields
}

func (*Vm) Get

func (vm *Vm) Get(name string) (value any)

func (*Vm) RunString

func (vm *Vm) RunString(script string) (value any, err error)

func (*Vm) Set

func (vm *Vm) Set(name string, value any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL