v8vm

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package v8vm is the V8 (via cgo) extension runtime for Base.

The real implementation lives behind the `v8vm` build tag because v8go pulls in roughly 50 MB of cgo dependencies. The default build of base must compile without it, so this stub file is what gets linked in normally — `NewRuntime()` is always callable and always exists; only the actual V8 engine is opt-in via `go build -tags v8vm`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRuntime

func NewRuntime() extruntime.Runtime

NewRuntime returns a v8go-shaped runtime that errors at Load time when the binary was built without the `v8vm` build tag. Name() and Capabilities() still report the v8go identity so callers can detect the runtime is present-but-unavailable rather than missing entirely.

Types

This section is empty.

Jump to

Keyboard shortcuts

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