Example #1
0
func (o *Object) ToValue() *Value {
	var result *Value
	o.cx.rt.Use(func() {
		result = newValue(o.cx, C.OBJECT_TO_JSVAL(o.obj))
	})
	return result
}
Example #2
0
func (a *Array) ToValue() *Value {
	return newValue(a.cx, C.OBJECT_TO_JSVAL(a.obj))
}