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.
Click to show internal directories.
Click to hide internal directories.