Documentation ¶
Index ¶
- Constants
- func AppendJSON(dst []byte, value *Value) []byte
- func ForceGC()
- func GetVersion() string
- func SetFlagsFromString(cmd string)
- func ToJSON(value *Value) []byte
- func UseDefaultArrayBufferAllocator()
- type AccessControl
- type AccessorCallbackInfo
- type AccessorGetterCallback
- type AccessorSetterCallback
- type Array
- type Context
- type ContextScope
- func (cs ContextScope) Eval(code string) *Value
- func (cs ContextScope) GetEngine() *Engine
- func (cs ContextScope) GetPrivateData() interface{}
- func (cs ContextScope) Global() *Object
- func (cs ContextScope) ParseJSON(json string) *Value
- func (cs ContextScope) Run(s *Script) *Value
- func (cs ContextScope) SetPrivateData(data interface{})
- func (cs ContextScope) ThrowException(err string)
- func (cs ContextScope) ThrowException2(value *Value)
- func (cs ContextScope) TryCatch(callback func()) error
- func (cs ContextScope) TryCatchException(callback func()) *Exception
- type DynamicObject
- type DynamicProperty
- type Engine
- func (engine *Engine) AddMessageListener(callback MessageCallback) int64
- func (e *Engine) Compile(code []byte, origin *ScriptOrigin) *Script
- func (e *Engine) False() *Value
- func (this Engine) GetPrivateData() interface{}
- func (engine *Engine) GoValueToJsValue(value reflect.Value) *Value
- func (e *Engine) NewArray(length int) *Value
- func (e *Engine) NewBoolean(value bool) *Value
- func (e *Engine) NewContext(globalTemplate *ObjectTemplate) *Context
- func (e *Engine) NewDate(value time.Time) *Value
- func (e *Engine) NewError(message string) *Value
- func (e *Engine) NewExternal(value interface{}) *External
- func (e *Engine) NewFunction(callback FunctionCallback, data interface{}) *Function
- func (e *Engine) NewFunctionTemplate(callback FunctionCallback, data interface{}) *FunctionTemplate
- func (e *Engine) NewInstanceOf(ot *ObjectTemplate) *Value
- func (e *Engine) NewInteger(value int64) *Value
- func (e *Engine) NewNumber(value float64) *Value
- func (e *Engine) NewObject() *Value
- func (e *Engine) NewObjectTemplate() *ObjectTemplate
- func (e *Engine) NewRangeError(message string) *Value
- func (e *Engine) NewReferenceError(message string) *Value
- func (e *Engine) NewRegExp(pattern string, flags RegExpFlags) *Value
- func (e *Engine) NewScriptOrigin(name string, lineOffset, columnOffset int) *ScriptOrigin
- func (e *Engine) NewString(value string) *Value
- func (e *Engine) NewSyntaxError(message string) *Value
- func (e *Engine) NewTypeError(message string) *Value
- func (e *Engine) Null() *Value
- func (engine *Engine) RemoveMessageListener(id int64)
- func (engine *Engine) SetCaptureStackTraceForUncaughtExceptions(capture bool, frameLimit int)
- func (engine *Engine) SetJsValueToGo(field reflect.Value, jsvalue *Value)
- func (this *Engine) SetPrivateData(data interface{})
- func (e *Engine) True() *Value
- func (e *Engine) Undefined() *Value
- type Exception
- type External
- type Function
- type FunctionCallback
- type FunctionCallbackInfo
- func (fc FunctionCallbackInfo) Callee() *Function
- func (fc FunctionCallbackInfo) CurrentScope() ContextScope
- func (fc FunctionCallbackInfo) Data() interface{}
- func (fc FunctionCallbackInfo) Get(i int) *Value
- func (fc FunctionCallbackInfo) Holder() *Object
- func (fc FunctionCallbackInfo) Length() int
- func (fc *FunctionCallbackInfo) ReturnValue() ReturnValue
- func (fc FunctionCallbackInfo) This() *Object
- type FunctionTemplate
- type IndexedPropertyDeleterCallback
- type IndexedPropertyEnumeratorCallback
- type IndexedPropertyGetterCallback
- type IndexedPropertyQueryCallback
- type IndexedPropertySetterCallback
- type Message
- type MessageCallback
- type NamedPropertyDeleterCallback
- type NamedPropertyEnumeratorCallback
- type NamedPropertyGetterCallback
- type NamedPropertyQueryCallback
- type NamedPropertySetterCallback
- type Object
- func (o *Object) DeleteElement(index int) bool
- func (o *Object) DeleteProperty(key string) bool
- func (o *Object) ForceDeleteProperty(key string) bool
- func (o *Object) ForceSetProperty(key string, value *Value, attribs PropertyAttribute) bool
- func (o *Object) GetElement(index int) *Value
- func (o *Object) GetInternalField(index int) interface{}
- func (o *Object) GetOwnPropertyNames() *Array
- func (o *Object) GetProperty(key string) *Value
- func (o *Object) GetPropertyAttributes(key string) PropertyAttribute
- func (o *Object) GetPropertyNames() *Array
- func (o *Object) GetPrototype() *Object
- func (o *Object) HasElement(index int) bool
- func (o *Object) HasProperty(key string) bool
- func (o *Object) InternalFieldCount() int
- func (o *Object) SetAccessor(key string, getter AccessorGetterCallback, setter AccessorSetterCallback, ...)
- func (o *Object) SetElement(index int, value *Value) bool
- func (o *Object) SetInternalField(index int, value interface{})
- func (o *Object) SetProperty(key string, value *Value, attribs PropertyAttribute) bool
- func (o *Object) SetPrototype(proto *Object) bool
- type ObjectTemplate
- func (template *ObjectTemplate) Bind(typeName string, target interface{}) error
- func (ot *ObjectTemplate) Dispose()
- func (ot *ObjectTemplate) InternalFieldCount() int
- func (ot *ObjectTemplate) Plugin(pluginInit unsafe.Pointer)
- func (ot *ObjectTemplate) SetAccessor(key string, getter AccessorGetterCallback, setter AccessorSetterCallback, ...)
- func (ot *ObjectTemplate) SetIndexedPropertyHandler(getter IndexedPropertyGetterCallback, setter IndexedPropertySetterCallback, ...)
- func (ot *ObjectTemplate) SetInternalFieldCount(count int)
- func (ot *ObjectTemplate) SetNamedPropertyHandler(getter NamedPropertyGetterCallback, setter NamedPropertySetterCallback, ...)
- func (ot *ObjectTemplate) SetProperty(key string, value *Value, attribs PropertyAttribute)
- func (ot *ObjectTemplate) WrapObject(value *Value)
- type PropertyAttribute
- type PropertyCallbackInfo
- type RegExp
- type RegExpFlags
- type ReturnValue
- func (rv ReturnValue) Set(value *Value)
- func (rv ReturnValue) SetBoolean(value bool)
- func (rv ReturnValue) SetInt32(value int32)
- func (rv ReturnValue) SetNull()
- func (rv ReturnValue) SetNumber(value float64)
- func (rv ReturnValue) SetString(value string)
- func (rv ReturnValue) SetUint32(value uint32)
- func (rv ReturnValue) SetUndefined()
- type Script
- type ScriptOrigin
- type StackFrame
- type StackTrace
- type StackTraceOptions
- type Value
- func (v *Value) IsArray() bool
- func (v *Value) IsBoolean() bool
- func (v *Value) IsBooleanObject() bool
- func (v *Value) IsDate() bool
- func (v *Value) IsExternal() bool
- func (v *Value) IsFalse() bool
- func (v *Value) IsFunction() bool
- func (v *Value) IsInt32() bool
- func (v *Value) IsNativeError() bool
- func (v *Value) IsNull() bool
- func (v *Value) IsNumber() bool
- func (v *Value) IsNumberObject() bool
- func (v *Value) IsObject() bool
- func (v *Value) IsRegExp() bool
- func (v *Value) IsString() bool
- func (v *Value) IsStringObject() bool
- func (v *Value) IsTrue() bool
- func (v *Value) IsUint32() bool
- func (v *Value) IsUndefined() bool
- func (v *Value) String() string
- func (v *Value) ToArray() *Array
- func (v *Value) ToBoolean() bool
- func (v *Value) ToExternal() *External
- func (v *Value) ToFunction() *Function
- func (v *Value) ToInt32() int32
- func (v *Value) ToInteger() int64
- func (v *Value) ToNumber() float64
- func (v *Value) ToObject() *Object
- func (v *Value) ToRegExp() *RegExp
- func (v *Value) ToString() string
- func (v *Value) ToTime() time.Time
- func (v *Value) ToUint32() uint32
Constants ¶
const ( PA_None PropertyAttribute = 0 PA_ReadOnly = 1 << 0 PA_DontEnum = 1 << 1 PA_DontDelete = 1 << 2 )
const ( RF_None RegExpFlags = 0 RF_Global = 1 RF_IgnoreCase = 2 RF_Multiline = 4 )
Regular expression flag bits. They can be or'ed to enable a set of flags.
const ( AC_DEFAULT AccessControl = 0 AC_ALL_CAN_READ = 1 AC_ALL_CAN_WRITE = 1 << 1 AC_PROHIBITS_OVERWRITING = 1 << 2 )
Access control specifications.
Some accessors should be accessible across contexts. These accessors have an explicit access control parameter which specifies the kind of cross-context access that should be allowed.
Additionally, for security, accessors can prohibit overwriting by accessors defined in JavaScript. For objects that have such accessors either locally or in their prototype chain it is not possible to overwrite the accessor by using __defineGetter__ or __defineSetter__ from JavaScript code.
Variables ¶
This section is empty.
Functions ¶
func AppendJSON ¶
func GetVersion ¶
func GetVersion() string
func SetFlagsFromString ¶
func SetFlagsFromString(cmd string)
func UseDefaultArrayBufferAllocator ¶
func UseDefaultArrayBufferAllocator()
Set default array buffer allocator to V8 for ArrayBuffer, ArrayBufferView, Int8Array... If you want to use your own allocator. You can implement it in C++ and invoke v8::SetArrayBufferAllocator by your self
Types ¶
type AccessControl ¶
type AccessControl int
type AccessorCallbackInfo ¶
type AccessorCallbackInfo struct {
// contains filtered or unexported fields
}
Property getter callback info
func (AccessorCallbackInfo) CurrentScope ¶
func (ac AccessorCallbackInfo) CurrentScope() ContextScope
func (AccessorCallbackInfo) Data ¶
func (ac AccessorCallbackInfo) Data() interface{}
func (AccessorCallbackInfo) Holder ¶
func (ac AccessorCallbackInfo) Holder() *Object
func (*AccessorCallbackInfo) ReturnValue ¶
func (ac *AccessorCallbackInfo) ReturnValue() ReturnValue
func (AccessorCallbackInfo) This ¶
func (ac AccessorCallbackInfo) This() *Object
type AccessorGetterCallback ¶
type AccessorGetterCallback func(name string, info AccessorCallbackInfo)
type AccessorSetterCallback ¶
type AccessorSetterCallback func(name string, value *Value, info AccessorCallbackInfo)
type Array ¶
type Array struct {
*Object
}
An instance of the built-in array constructor (ECMA-262, 15.4.2).
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
A sandboxed execution context with its own set of built-in objects and functions.
func (Context) GetPrivateData ¶
func (this Context) GetPrivateData() interface{}
func (*Context) Scope ¶
func (c *Context) Scope(callback func(ContextScope))
func (*Context) SetPrivateData ¶
func (this *Context) SetPrivateData(data interface{})
type ContextScope ¶
type ContextScope struct {
// contains filtered or unexported fields
}
func (ContextScope) Eval ¶
func (cs ContextScope) Eval(code string) *Value
func (ContextScope) GetEngine ¶
func (cs ContextScope) GetEngine() *Engine
func (ContextScope) GetPrivateData ¶
func (cs ContextScope) GetPrivateData() interface{}
func (ContextScope) Global ¶
func (cs ContextScope) Global() *Object
func (ContextScope) ParseJSON ¶
func (cs ContextScope) ParseJSON(json string) *Value
func (ContextScope) Run ¶
func (cs ContextScope) Run(s *Script) *Value
Runs the script returning the resulting value.
func (ContextScope) SetPrivateData ¶
func (cs ContextScope) SetPrivateData(data interface{})
func (ContextScope) ThrowException ¶
func (cs ContextScope) ThrowException(err string)
func (ContextScope) ThrowException2 ¶
func (cs ContextScope) ThrowException2(value *Value)
func (ContextScope) TryCatch ¶
func (cs ContextScope) TryCatch(callback func()) error
func (ContextScope) TryCatchException ¶
func (cs ContextScope) TryCatchException(callback func()) *Exception
type DynamicObject ¶
type DynamicObject struct { Target reflect.Value // Target Go value. SpecFields []specField // Special fields defined by 'js-field' struct tag. Properties []DynamicProperty // Dynamic properities. }
DynamicObject used to handle dynamic property use case in JS.
func (*DynamicObject) DelDynamicProperty ¶
func (dyObj *DynamicObject) DelDynamicProperty(name string)
Delete dynamic property.
func (*DynamicObject) GetDynamicProperty ¶
func (dyObj *DynamicObject) GetDynamicProperty(name string) *Value
Get dynamic property.
func (*DynamicObject) GetSpecField ¶
func (dyObj *DynamicObject) GetSpecField(name string) int
Get special field index.
func (*DynamicObject) SetDynamicProperty ¶
func (dyObj *DynamicObject) SetDynamicProperty(name string, jsvalue *Value)
Set dynamic property. If the property not exists, it will be added.
type DynamicProperty ¶
Dynamic object property.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Represents an isolated instance of the V8 engine. Objects from one engine must not be used in other engine. Not thred safe!
func (*Engine) AddMessageListener ¶
func (engine *Engine) AddMessageListener(callback MessageCallback) int64
func (*Engine) Compile ¶
func (e *Engine) Compile(code []byte, origin *ScriptOrigin) *Script
Compiles the specified script (context-independent). 'data' is the Pre-parsing data, as obtained by PreCompile() using pre_data speeds compilation if it's done multiple times.
func (Engine) GetPrivateData ¶
func (this Engine) GetPrivateData() interface{}
func (*Engine) GoValueToJsValue ¶
func (*Engine) NewBoolean ¶
func (*Engine) NewContext ¶
func (e *Engine) NewContext(globalTemplate *ObjectTemplate) *Context
func (*Engine) NewExternal ¶
func (*Engine) NewFunction ¶
func (e *Engine) NewFunction(callback FunctionCallback, data interface{}) *Function
func (*Engine) NewFunctionTemplate ¶
func (e *Engine) NewFunctionTemplate(callback FunctionCallback, data interface{}) *FunctionTemplate
func (*Engine) NewInstanceOf ¶
func (e *Engine) NewInstanceOf(ot *ObjectTemplate) *Value
func (*Engine) NewInteger ¶
func (*Engine) NewObjectTemplate ¶
func (e *Engine) NewObjectTemplate() *ObjectTemplate
func (*Engine) NewRangeError ¶
func (*Engine) NewReferenceError ¶
func (*Engine) NewRegExp ¶
func (e *Engine) NewRegExp(pattern string, flags RegExpFlags) *Value
Creates a regular expression from the given pattern string and the flags bit field. May throw a JavaScript exception as described in ECMA-262, 15.10.4.1.
For example,
NewRegExp("foo", RF_Global | RF_Multiline)
is equivalent to evaluating "/foo/gm".
func (*Engine) NewScriptOrigin ¶
func (e *Engine) NewScriptOrigin(name string, lineOffset, columnOffset int) *ScriptOrigin
func (*Engine) NewSyntaxError ¶
func (*Engine) NewTypeError ¶
func (*Engine) RemoveMessageListener ¶
func (*Engine) SetCaptureStackTraceForUncaughtExceptions ¶
func (*Engine) SetJsValueToGo ¶
func (*Engine) SetPrivateData ¶
func (this *Engine) SetPrivateData(data interface{})
type Function ¶
type Function struct { *Object // contains filtered or unexported fields }
A JavaScript function object (ECMA-262, 15.3).
func (*Function) NewInstance ¶
type FunctionCallback ¶
type FunctionCallback func(FunctionCallbackInfo)
type FunctionCallbackInfo ¶
type FunctionCallbackInfo struct {
// contains filtered or unexported fields
}
Function callback info
func (FunctionCallbackInfo) Callee ¶
func (fc FunctionCallbackInfo) Callee() *Function
func (FunctionCallbackInfo) CurrentScope ¶
func (fc FunctionCallbackInfo) CurrentScope() ContextScope
func (FunctionCallbackInfo) Data ¶
func (fc FunctionCallbackInfo) Data() interface{}
func (FunctionCallbackInfo) Get ¶
func (fc FunctionCallbackInfo) Get(i int) *Value
func (FunctionCallbackInfo) Holder ¶
func (fc FunctionCallbackInfo) Holder() *Object
func (FunctionCallbackInfo) Length ¶
func (fc FunctionCallbackInfo) Length() int
func (*FunctionCallbackInfo) ReturnValue ¶
func (fc *FunctionCallbackInfo) ReturnValue() ReturnValue
func (FunctionCallbackInfo) This ¶
func (fc FunctionCallbackInfo) This() *Object
type FunctionTemplate ¶
func (*FunctionTemplate) Dispose ¶
func (ft *FunctionTemplate) Dispose()
func (*FunctionTemplate) InstanceTemplate ¶
func (ft *FunctionTemplate) InstanceTemplate() *ObjectTemplate
func (*FunctionTemplate) NewFunction ¶
func (ft *FunctionTemplate) NewFunction() *Value
func (*FunctionTemplate) SetClassName ¶
func (ft *FunctionTemplate) SetClassName(name string)
type IndexedPropertyDeleterCallback ¶
type IndexedPropertyDeleterCallback func(uint32, PropertyCallbackInfo)
type IndexedPropertyEnumeratorCallback ¶
type IndexedPropertyEnumeratorCallback func(PropertyCallbackInfo)
type IndexedPropertyGetterCallback ¶
type IndexedPropertyGetterCallback func(uint32, PropertyCallbackInfo)
type IndexedPropertyQueryCallback ¶
type IndexedPropertyQueryCallback func(uint32, PropertyCallbackInfo)
type IndexedPropertySetterCallback ¶
type IndexedPropertySetterCallback func(uint32, *Value, PropertyCallbackInfo)
type Message ¶
type MessageCallback ¶
type MessageCallback func(message *Message)
type NamedPropertyDeleterCallback ¶
type NamedPropertyDeleterCallback func(string, PropertyCallbackInfo)
type NamedPropertyEnumeratorCallback ¶
type NamedPropertyEnumeratorCallback func(PropertyCallbackInfo)
type NamedPropertyGetterCallback ¶
type NamedPropertyGetterCallback func(string, PropertyCallbackInfo)
type NamedPropertyQueryCallback ¶
type NamedPropertyQueryCallback func(string, PropertyCallbackInfo)
type NamedPropertySetterCallback ¶
type NamedPropertySetterCallback func(string, *Value, PropertyCallbackInfo)
type Object ¶
type Object struct { *Value // contains filtered or unexported fields }
A JavaScript object (ECMA-262, 4.3.3)
func (*Object) DeleteElement ¶
func (*Object) DeleteProperty ¶
func (*Object) ForceDeleteProperty ¶
Delete a property on this object bypassing interceptors and ignoring dont-delete attributes.
func (*Object) ForceSetProperty ¶
func (o *Object) ForceSetProperty(key string, value *Value, attribs PropertyAttribute) bool
Sets a local property on this object bypassing interceptors and overriding accessors or read-only properties.
Note that if the object has an interceptor the property will be set locally, but since the interceptor takes precedence the local property will only be returned if the interceptor doesn't return a value.
Note also that this only works for named properties.
func (*Object) GetElement ¶
func (*Object) GetInternalField ¶
func (*Object) GetOwnPropertyNames ¶
This function has the same functionality as GetPropertyNames but the returned array doesn't contain the names of properties from prototype objects.
func (*Object) GetProperty ¶
func (*Object) GetPropertyAttributes ¶
func (o *Object) GetPropertyAttributes(key string) PropertyAttribute
func (*Object) GetPropertyNames ¶
Returns an array containing the names of the enumerable properties of this object, including properties from prototype objects. The array returned by this method contains the same values as would be enumerated by a for-in statement over this object.
func (*Object) GetPrototype ¶
Get the prototype object. This does not skip objects marked to be skipped by __proto__ and it does not consult the security handler.
func (*Object) HasElement ¶
func (*Object) HasProperty ¶
func (*Object) InternalFieldCount ¶
func (*Object) SetAccessor ¶
func (o *Object) SetAccessor( key string, getter AccessorGetterCallback, setter AccessorSetterCallback, data interface{}, attribs PropertyAttribute, )
func (*Object) SetInternalField ¶
func (*Object) SetProperty ¶
func (o *Object) SetProperty(key string, value *Value, attribs PropertyAttribute) bool
func (*Object) SetPrototype ¶
Set the prototype object. This does not skip objects marked to be skipped by __proto__ and it does not consult the security handler.
type ObjectTemplate ¶
func (*ObjectTemplate) Bind ¶
func (template *ObjectTemplate) Bind(typeName string, target interface{}) error
Fast bind Go type or function to JS. Note, The function template and object template created in fast bind internal are never destroyed. The JS class map to Go type use a internal field to reference a Go object when it instanced. All of the internal field keep reference by engine. So, may be you don't like to create too many instance of them.
func (*ObjectTemplate) Dispose ¶
func (ot *ObjectTemplate) Dispose()
func (*ObjectTemplate) InternalFieldCount ¶
func (ot *ObjectTemplate) InternalFieldCount() int
func (*ObjectTemplate) Plugin ¶
func (ot *ObjectTemplate) Plugin(pluginInit unsafe.Pointer)
func (*ObjectTemplate) SetAccessor ¶
func (ot *ObjectTemplate) SetAccessor( key string, getter AccessorGetterCallback, setter AccessorSetterCallback, data interface{}, attribs PropertyAttribute, )
func (*ObjectTemplate) SetIndexedPropertyHandler ¶
func (ot *ObjectTemplate) SetIndexedPropertyHandler( getter IndexedPropertyGetterCallback, setter IndexedPropertySetterCallback, query IndexedPropertyQueryCallback, deleter IndexedPropertyDeleterCallback, enumerator IndexedPropertyEnumeratorCallback, data interface{}, )
func (*ObjectTemplate) SetInternalFieldCount ¶
func (ot *ObjectTemplate) SetInternalFieldCount(count int)
func (*ObjectTemplate) SetNamedPropertyHandler ¶
func (ot *ObjectTemplate) SetNamedPropertyHandler( getter NamedPropertyGetterCallback, setter NamedPropertySetterCallback, query NamedPropertyQueryCallback, deleter NamedPropertyDeleterCallback, enumerator NamedPropertyEnumeratorCallback, data interface{}, )
func (*ObjectTemplate) SetProperty ¶
func (ot *ObjectTemplate) SetProperty(key string, value *Value, attribs PropertyAttribute)
func (*ObjectTemplate) WrapObject ¶
func (ot *ObjectTemplate) WrapObject(value *Value)
type PropertyAttribute ¶
type PropertyAttribute int
type PropertyCallbackInfo ¶
type PropertyCallbackInfo struct {
// contains filtered or unexported fields
}
func (PropertyCallbackInfo) CurrentScope ¶
func (p PropertyCallbackInfo) CurrentScope() ContextScope
func (PropertyCallbackInfo) Data ¶
func (p PropertyCallbackInfo) Data() interface{}
func (PropertyCallbackInfo) Holder ¶
func (p PropertyCallbackInfo) Holder() *Object
func (PropertyCallbackInfo) ReturnValue ¶
func (p PropertyCallbackInfo) ReturnValue() ReturnValue
func (PropertyCallbackInfo) This ¶
func (p PropertyCallbackInfo) This() *Object
type RegExpFlags ¶
type RegExpFlags int
type ReturnValue ¶
type ReturnValue struct {
// contains filtered or unexported fields
}
Function and property return value
func (ReturnValue) Set ¶
func (rv ReturnValue) Set(value *Value)
func (ReturnValue) SetBoolean ¶
func (rv ReturnValue) SetBoolean(value bool)
func (ReturnValue) SetInt32 ¶
func (rv ReturnValue) SetInt32(value int32)
func (ReturnValue) SetNull ¶
func (rv ReturnValue) SetNull()
func (ReturnValue) SetNumber ¶
func (rv ReturnValue) SetNumber(value float64)
func (ReturnValue) SetString ¶
func (rv ReturnValue) SetString(value string)
func (ReturnValue) SetUint32 ¶
func (rv ReturnValue) SetUint32(value uint32)
func (ReturnValue) SetUndefined ¶
func (rv ReturnValue) SetUndefined()
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
A compiled JavaScript script.
type ScriptOrigin ¶
The origin, within a file, of a script.
type StackFrame ¶
type StackTrace ¶
type StackTrace []*StackFrame
func (StackTrace) String ¶
func (s StackTrace) String() string
type StackTraceOptions ¶
type StackTraceOptions uint
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
The superclass of all JavaScript values and objects.