runtime

package
v0.0.0-...-b8ea24a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: MIT Imports: 5 Imported by: 1

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 (self *JSObject) DefineProperty(prop string, value Object)

func (*JSObject) GetProperty

func (self *JSObject) GetProperty(prop string) (Object, error)

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

Jump to

Keyboard shortcuts

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