Versions in this module Expand all Collapse all v3 v3.3.4 Sep 30, 2024 Changes in this version + var ErrInvalidFuncOpts = errorutil.NewWithFmt("invalid function options: %v") + var ErrNilRuntime = errorutil.New("runtime is nil") + func GetClassConstructor[T any](instance *T) func(call goja.ConstructorCall, runtime *goja.Runtime) *goja.Object + func RegisterFuncWithSignature(runtime *goja.Runtime, opts FuncOpts) error + type FuncOpts struct + Description string + FuncDecl interface{} + Name string + Signatures []string + type GojaModule struct + func (p *GojaModule) Enable(runtime Runtime) + func (p *GojaModule) Name() string + func (p *GojaModule) Register() Module + func (p *GojaModule) Require(runtime *goja.Runtime, module *goja.Object) + func (p *GojaModule) Set(objects Objects) Module + func (p *GojaModule) String() string + type Module interface + Enable func(Runtime) + Name func() string + Register func() Module + Set func(objects Objects) Module + func NewGojaModule(name string) Module + type Object interface + Get func(string) interface{} + Set func(string, interface{}) + type Objects map[string]interface + type Runtime interface + Set func(string, interface{}) error