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.