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
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 ¶
func (sfejs *StatefunExecutorPluginJS) Run(ctx *sfPlugins.StatefunContextProcessor) error
Execute script (Run executes already compiled program)
Click to show internal directories.
Click to hide internal directories.