jsvm

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VM

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

func New

func New() *VM

func (*VM) LoadModule

func (v *VM) LoadModule(name, code string)

func (*VM) Require

func (v *VM) Require(module string) (goja.Value, error)

func (*VM) Run

func (v *VM) Run(code string, doc *spec.T) (res string, err error)

func (*VM) VM

func (v *VM) VM() *goja.Runtime

Jump to

Keyboard shortcuts

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