runtime

package
v0.0.0-...-8426a68 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformScript

func TransformScript(entryFilePath string) (string, error)

Types

type Runtime

type Runtime struct {
	Isolate *v8.Isolate
	Context *v8.Context
}

func NewRuntime

func NewRuntime() (*Runtime, error)

func (*Runtime) Dispose

func (r *Runtime) Dispose()

func (*Runtime) ExecuteScript

func (r *Runtime) ExecuteScript(scriptPath string) (*v8.Value, error)

func (*Runtime) SetupGlobals

func (r *Runtime) SetupGlobals(scriptDir string) error

Jump to

Keyboard shortcuts

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