Documentation
¶
Index ¶
Constants ¶
View Source
const ( JS_OBJECT_TYPE_OBJECT = "object" JS_OBJECT_TYPE_STRING = "string" JS_OBJECT_TYPE_NUMBER = "number" JS_OBJECT_TYPE_FUNCTION = "function" )
Variables ¶
This section is empty.
Functions ¶
func Console_Log ¶
func Console_Log(data []Object)
Types ¶
type Context ¶
type Context struct {
Global *JSObject
}
func NewDefaultContext ¶
func NewDefaultContext() *Context
type JSFunction ¶
type JSFunction struct {
// contains filtered or unexported fields
}
func (*JSFunction) FuncName ¶
func (self *JSFunction) FuncName() string
func (*JSFunction) Type ¶
func (self *JSFunction) Type() JSObjectType
type JSNumber ¶
type JSNumber float64
func (JSNumber) Type ¶
func (self JSNumber) Type() JSObjectType
type JSObject ¶
type JSObject struct {
// contains filtered or unexported fields
}
func (*JSObject) DefineProperty ¶
func (*JSObject) Type ¶
func (self *JSObject) Type() JSObjectType
type JSObjectType ¶
type JSObjectType string
type JSString ¶
type JSString string
func (JSString) Type ¶
func (self JSString) Type() JSObjectType
type Object ¶
type Object interface {
Type() JSObjectType
}
type ReferenceError ¶
type ReferenceError struct {
// contains filtered or unexported fields
}
func (*ReferenceError) Error ¶
func (self *ReferenceError) Error() string
Click to show internal directories.
Click to hide internal directories.