Documentation ¶
Index ¶
- Variables
- type Atom
- type Context
- func (ctx *Context) Array() Value
- func (ctx *Context) Atom(v string) Atom
- func (ctx *Context) BigInt64(v uint64) Value
- func (ctx *Context) BigUint64(v uint64) Value
- func (ctx *Context) Bool(b bool) Value
- func (ctx *Context) Call(this Value, fn Value, args []Value) (Value, error)
- func (ctx *Context) DupValue(value Value) Value
- func (ctx *Context) Error(err error) Value
- func (ctx *Context) Eval(code string, evaltype int) (Value, error)
- func (ctx *Context) EvalFile(code string, evaltype int, filename string) (Value, error)
- func (ctx *Context) Exception() error
- func (ctx *Context) Float64(v float64) Value
- func (ctx *Context) Free()
- func (ctx *Context) Function(fn Function) Value
- func (ctx *Context) Globals() Value
- func (ctx *Context) InitOsModule()
- func (ctx *Context) InitStdModule()
- func (ctx *Context) Int32(v int32) Value
- func (ctx *Context) Int64(v int64) Value
- func (ctx *Context) JsFunction(this Value, fn Value, args []Value) Value
- func (ctx *Context) Null() Value
- func (ctx *Context) Object() Value
- func (ctx *Context) StdDumpError()
- func (ctx *Context) StdHelper()
- 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
- type Function
- type JsInterface
- type JsThread
- type ObjectId
- type PropertyEnum
- type Runtime
- type Value
- func (v Value) BigFloat() *big.Float
- func (v Value) BigInt() *big.Int
- func (v Value) Bool() bool
- func (v Value) Context() *Context
- func (v Value) Error() error
- func (v Value) Float64() float64
- func (v Value) Free()
- func (v Value) Get(name string) Value
- func (v Value) GetByAtom(atom Atom) Value
- func (v Value) GetByUint32(idx uint32) Value
- 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) IsConstructor() bool
- func (v Value) IsError() bool
- func (v Value) IsException() bool
- func (v Value) IsFunction() bool
- func (v Value) IsNull() bool
- func (v Value) IsNumber() bool
- func (v Value) IsObject() bool
- func (v Value) IsString() bool
- func (v Value) IsSymbol() bool
- func (v Value) IsUndefined() bool
- func (v Value) IsUninitialized() bool
- func (v Value) Len() int64
- func (v Value) PropertyNames() ([]PropertyEnum, error)
- func (v Value) Set(name string, val Value)
- func (v Value) SetByAtom(atom Atom, val Value)
- func (v Value) SetByInt64(idx int64, val Value)
- func (v Value) SetByUint32(idx uint32, val Value)
- func (v Value) SetFunction(name string, fn Function)
- func (v Value) String() string
- func (v Value) Uint32() uint32
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EVAL_GLOBAL int = int(C.JS_EVAL_TYPE_GLOBAL) EVAL_MODULE int = int(C.JS_EVAL_TYPE_MODULE) EVAL_STRICT int = int(C.JS_EVAL_FLAG_STRICT) EVAL_STRIP int = int(C.JS_EVAL_FLAG_STRIP) )
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) InitOsModule ¶
func (ctx *Context) InitOsModule()
func (*Context) InitStdModule ¶
func (ctx *Context) InitStdModule()
func (*Context) JsFunction ¶
func (*Context) StdDumpError ¶
func (ctx *Context) StdDumpError()
func (*Context) ThrowError ¶
func (*Context) ThrowInternalError ¶
func (*Context) ThrowRangeError ¶
func (*Context) ThrowReferenceError ¶
func (*Context) ThrowSyntaxError ¶
func (*Context) ThrowTypeError ¶
func (*Context) Uninitialized ¶
type JsInterface ¶
type JsThread ¶
func NewJsThread ¶
func NewJsThread(Interface JsInterface) *JsThread
type PropertyEnum ¶
func (PropertyEnum) String ¶
func (p PropertyEnum) String() string
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func NewRuntime() Runtime
func (Runtime) ExecutePendingJob ¶
func (Runtime) NewContext ¶
func (Runtime) StdFreeHandlers ¶
func (r Runtime) StdFreeHandlers()
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func (Value) GetByUint32 ¶
func (Value) IsBigDecimal ¶
func (Value) IsBigFloat ¶
func (Value) IsConstructor ¶
func (Value) IsException ¶
func (Value) IsFunction ¶
func (Value) IsUndefined ¶
func (Value) IsUninitialized ¶
func (Value) PropertyNames ¶
func (v Value) PropertyNames() ([]PropertyEnum, error)
func (Value) SetByInt64 ¶
func (Value) SetByUint32 ¶
func (Value) SetFunction ¶
Click to show internal directories.
Click to hide internal directories.