gojavm

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package gojavm wraps the dop251/goja JavaScript engine as an extruntime.Runtime, so a manifest with `"runtime": "goja"` loads here. This is the lightweight JS option — pure Go, no cgo, shares the host heap. Use it when you don't need a hard sandbox.

This is alongside plugins/jsvm (the hook-style goja host), not a replacement. Hook files (.base.js) still go through jsvm. Extension directories with extension.json + runtime=goja go through here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRuntime

func NewRuntime() extruntime.Runtime

NewRuntime constructs a goja-backed extruntime.Runtime. Each module loaded by the returned runtime owns its own program (compiled JS) and reuses runtimes from a process-wide pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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