utils

package
v0.0.0-...-85b7c0f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover(r *goja.Runtime)

Types

type Definer

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

func MakeDefiner

func MakeDefiner(runtime *goja.Runtime, obj *goja.Object) Definer

func (*Definer) Accessor

func (d *Definer) Accessor(name string,
	getter, setter func(goja.FunctionCall) goja.Value,
)

func (*Definer) ChildDefiner

func (d *Definer) ChildDefiner(name string) Definer

func (*Definer) GetObject

func (d *Definer) GetObject(name string) *goja.Object

func (*Definer) Set

func (d *Definer) Set(name string, value interface{})

Jump to

Keyboard shortcuts

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