Versions in this module Expand all Collapse all v1 v1.0.0 Apr 18, 2019 Changes in this version + var Version = struct{ ... } + type Callback func(CallbackArgs) (*Value, error) + type CallbackArgs struct + Args []*Value + Caller Loc + Context *Context + func (c *CallbackArgs) Arg(n int) *Value + type Context struct + func (ctx *Context) Bind(name string, cb Callback) *Value + func (ctx *Context) Create(val interface{}) (*Value, error) + func (ctx *Context) Eval(jsCode, filename string) (*Value, error) + func (ctx *Context) Global() *Value + func (ctx *Context) ParseJson(json string) (*Value, error) + func (ctx *Context) Terminate() + type HeapStatistics struct + DoesZapGarbage bool + HeapSizeLimit uint64 + MallocedMemory uint64 + PeakMallocedMemory uint64 + TotalAvailableSize uint64 + TotalHeapSize uint64 + TotalHeapSizeExecutable uint64 + TotalPhysicalSize uint64 + UsedHeapSize uint64 + type Isolate struct + func NewIsolate() *Isolate + func NewIsolateWithSnapshot(s *Snapshot) *Isolate + func (i *Isolate) GetHeapStatistics() HeapStatistics + func (i *Isolate) NewContext() *Context + func (i *Isolate) SendLowMemoryNotification() + func (i *Isolate) Terminate() + type Kind uint8 + const KindArgumentsObject + const KindArray + const KindArrayBuffer + const KindArrayBufferView + const KindAsyncFunction + const KindBoolean + const KindBooleanObject + const KindDataView + const KindDate + const KindExternal + const KindFloat32Array + const KindFloat64Array + const KindFunction + const KindGeneratorFunction + const KindGeneratorObject + const KindInt16Array + const KindInt32 + const KindInt32Array + const KindInt8Array + const KindMap + const KindMapIterator + const KindName + const KindNativeError + const KindNull + const KindNumber + const KindNumberObject + const KindObject + const KindPromise + const KindProxy + const KindRegExp + const KindSet + const KindSetIterator + const KindSharedArrayBuffer + const KindString + const KindStringObject + const KindSymbol + const KindSymbolObject + const KindTypedArray + const KindUint16Array + const KindUint32 + const KindUint32Array + const KindUint8Array + const KindUint8ClampedArray + const KindUndefined + const KindWeakMap + const KindWeakSet + const KindWebAssemblyCompiledModule + func (k Kind) String() string + type Loc struct + Column int + Filename string + Funcname string + Line int + type PromiseState uint8 + const PromiseStatePending + const PromiseStateRejected + const PromiseStateResolved + func (s PromiseState) String() string + type Snapshot struct + func CreateSnapshot(js string) *Snapshot + func RestoreSnapshotFromExport(data []byte) *Snapshot + func (s *Snapshot) Export() []byte + type Value struct + func (v *Value) Bool() bool + func (v *Value) Bytes() []byte + func (v *Value) Call(this *Value, args ...*Value) (*Value, error) + func (v *Value) Date() (time.Time, error) + func (v *Value) Float64() float64 + func (v *Value) Get(name string) (*Value, error) + func (v *Value) GetIndex(idx int) (*Value, error) + func (v *Value) Int64() int64 + func (v *Value) IsKind(k Kind) bool + func (v *Value) MarshalJSON() ([]byte, error) + func (v *Value) New(args ...*Value) (*Value, error) + func (v *Value) PromiseInfo() (PromiseState, *Value, error) + func (v *Value) Set(name string, value *Value) error + func (v *Value) SetIndex(idx int, value *Value) error + func (v *Value) String() string