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 }
func (a *Array) ToValue() *Value { return newValue(a.cx, C.OBJECT_TO_JSVAL(a.obj)) }