js

package
v0.1.7-cachejson-hotfix-2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatefunExecutorPluginJSContructor

func StatefunExecutorPluginJSContructor(alias string, source string) sfPlugins.StatefunExecutor

Executor constructor (same interface as v8 backend)

Types

type CustomJSError added in v0.1.6

type CustomJSError struct {
	Message    string
	Location   string
	StackTrace string
}

CustomJSError wraps JavaScript errors with additional info.

func (*CustomJSError) Error added in v0.1.6

func (e *CustomJSError) Error() string

func (*CustomJSError) GetLocation added in v0.1.6

func (e *CustomJSError) GetLocation() string

func (*CustomJSError) GetStackTrace added in v0.1.6

func (e *CustomJSError) GetStackTrace() string

type StatefunExecutorPluginJS

type StatefunExecutorPluginJS struct {
	// contains filtered or unexported fields
}

StatefunExecutorPluginJS is a JS executor backed by goja.

func (*StatefunExecutorPluginJS) BuildError

func (sfejs *StatefunExecutorPluginJS) BuildError() error

Return build-time error if present

func (*StatefunExecutorPluginJS) Run

Execute script (Run executes already compiled program)

Jump to

Keyboard shortcuts

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