Versions in this module Expand all Collapse all v0 v0.0.1 Feb 6, 2024 Changes in this version + type Array struct + func NewQjsArray(value Value, ctx *Context) *Array + func (a Array) Delete(index int64) (bool, error) + func (a Array) Free() + func (a Array) Get(index int64) (Value, error) + func (a Array) HasIdx(i int64) bool + func (a Array) Len() int64 + func (a Array) Push(elements ...Value) int64 + func (a Array) Set(index int64, value Value) error + func (a Array) ToValue() Value + type Atom struct + func (a Atom) Free() + func (a Atom) String() string + func (a Atom) Value() Value + type Context struct + func (ctx *Context) Array() *Array + func (ctx *Context) ArrayBuffer(binaryData []byte) Value + func (ctx *Context) AsyncFunction(asyncFn func(ctx *Context, this Value, promise Value, args []Value) Value) Value + func (ctx *Context) Atom(v string) Atom + func (ctx *Context) AtomIdx(idx int64) Atom + func (ctx *Context) BigInt64(v int64) Value + func (ctx *Context) BigUint64(v uint64) Value + func (ctx *Context) Bool(b bool) Value + func (ctx *Context) Close() + func (ctx *Context) Compile(code string) ([]byte, error) + func (ctx *Context) CompileFile(code, filename string) ([]byte, error) + func (ctx *Context) Error(err error) Value + func (ctx *Context) Eval(code string) (Value, error) + func (ctx *Context) EvalBytecode(buf []byte) (Value, error) + func (ctx *Context) EvalFile(code, filename string) (Value, error) + func (ctx *Context) Exception() error + func (ctx *Context) Float64(v float64) Value + func (ctx *Context) Function(fn func(ctx *Context, this Value, args []Value) Value) Value + func (ctx *Context) Globals() Value + func (ctx *Context) Int32(v int32) Value + func (ctx *Context) Int64(v int64) Value + func (ctx *Context) Invoke(fn Value, this Value, args ...Value) Value + func (ctx *Context) Map() *Map + func (ctx *Context) Null() Value + func (ctx *Context) Object() Value + func (ctx *Context) ParseJSON(v string) Value + func (ctx *Context) ScheduleJob(fn func()) + func (ctx *Context) Set() *Set + func (ctx *Context) SetInterruptHandler(handler InterruptHandler) + func (ctx *Context) String(v string) Value + func (ctx *Context) Throw(v Value) Value + func (ctx *Context) ThrowError(err error) Value + func (ctx *Context) ThrowInternalError(format string, args ...interface{}) Value + func (ctx *Context) ThrowRangeError(format string, args ...interface{}) Value + func (ctx *Context) ThrowReferenceError(format string, args ...interface{}) Value + func (ctx *Context) ThrowSyntaxError(format string, args ...interface{}) Value + func (ctx *Context) ThrowTypeError(format string, args ...interface{}) Value + func (ctx *Context) Uint32(v uint32) Value + func (ctx *Context) Undefined() Value + func (ctx *Context) Uninitialized() Value + type Error struct + Cause string + Stack string + func (err Error) Error() string + type InterruptHandler func() int + type Job func() + type Loop struct + func NewLoop() *Loop + type Map struct + func NewQjsMap(value Value, ctx *Context) *Map + func (m Map) Call(funcName string, values []Value) Value + func (m Map) Delete(key Value) + func (m Map) ForEach(forFn func(key Value, value Value)) + func (m Map) Free() + func (m Map) Get(key Value) Value + func (m Map) Has(key Value) bool + func (m Map) Put(key Value, value Value) + func (m Map) ToValue() Value + type Runtime struct + func NewRuntime() Runtime + func (r Runtime) Close() + func (r Runtime) ExecuteAllPendingJobs() error + func (r Runtime) ExecutePendingJob() (Context, error) + func (r Runtime) IsJobPending() bool + func (r Runtime) IsLoopJobPending() bool + func (r Runtime) NewContext() *Context + func (r Runtime) RunGC() + func (r Runtime) SetGCThreshold(threshold int64) + func (r Runtime) SetMaxStackSize(stack_size uint32) + func (r Runtime) SetMemoryLimit(limit uint32) + type Set struct + func NewQjsSet(value Value, ctx *Context) *Set + func (s Set) Add(value Value) + func (s Set) Delete(value Value) + func (s Set) ForEach(forFn func(value Value)) + func (s Set) Free() + func (s Set) Has(value Value) bool + func (s Set) ToValue() Value + type Value struct + func (v Value) BigFloat() *big.Float + func (v Value) BigInt() *big.Int + func (v Value) Bool() bool + func (v Value) ByteLen() int64 + func (v Value) Call(fname string, args ...Value) Value + func (v Value) Context() *Context + func (v Value) Delete(name string) bool + func (v Value) DeleteIdx(idx int64) bool + func (v Value) Error() error + func (v Value) Float64() float64 + func (v Value) Free() + func (v Value) Get(name string) Value + func (v Value) GetIdx(idx int64) Value + func (v Value) Has(name string) bool + func (v Value) HasIdx(idx int64) bool + func (v Value) Int32() int32 + func (v Value) Int64() int64 + func (v Value) IsArray() bool + func (v Value) IsBigDecimal() bool + func (v Value) IsBigFloat() bool + func (v Value) IsBigInt() bool + func (v Value) IsBool() bool + func (v Value) IsByteArray() bool + func (v Value) IsError() bool + func (v Value) IsException() bool + func (v Value) IsFunction() bool + func (v Value) IsMap() bool + func (v Value) IsNull() bool + func (v Value) IsNumber() bool + func (v Value) IsObject() bool + func (v Value) IsSet() bool + func (v Value) IsString() bool + func (v Value) IsSymbol() bool + func (v Value) IsUndefined() bool + func (v Value) IsUninitialized() bool + func (v Value) JSONStringify() string + func (v Value) Len() int64 + func (v Value) PropertyNames() ([]string, error) + func (v Value) Set(name string, val Value) + func (v Value) SetIdx(idx int64, val Value) + func (v Value) String() string + func (v Value) ToArray() *Array + func (v Value) ToByteArray(size uint) ([]byte, error) + func (v Value) ToMap() *Map + func (v Value) ToSet() *Set + func (v Value) Uint32() uint32