Documentation ¶
Index ¶
- func Panic(rt *goja.Runtime, err error)
- type Class
- type Compiler
- type Exports
- type Instance
- type Module
- type Runtime
- func (r *Runtime) Close() error
- func (r *Runtime) Compile() error
- func (r *Runtime) CreateObject() *goja.Object
- func (r *Runtime) Execute() error
- func (r *Runtime) GetDefaultExport() (*Class, error)
- func (r *Runtime) GetRuntime() *goja.Runtime
- func (r *Runtime) PanicError(error string)
- func (r *Runtime) RegisterModule(s string, m Module) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Class ¶
type Class struct {
// contains filtered or unexported fields
}
func (*Class) Instantiate ¶
Instantiate calls the constructor with the supplied arguments
func (*Class) InvokeVoid ¶
type Compiler ¶
func NewCompiler ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func (*Runtime) CreateObject ¶
func (*Runtime) GetDefaultExport ¶
func (*Runtime) GetRuntime ¶
func (*Runtime) PanicError ¶
Click to show internal directories.
Click to hide internal directories.