Example #1
0
func (o *Object) GetRealNamedProperty(key string) *Value {
	keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	return newValue(o.engine, C.V8_Object_GetRealNamedProperty(o.self, (*C.char)(keyPtr)))
}
Example #2
0
func (object_ *Object) GetRealNamedProperty(key string) *Value {
	//keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	keyPtr := StringToPointer(key)
	return NewValue(object_.engine, C.V8_Object_GetRealNamedProperty(object_.self, (*C.char)(keyPtr), C.int(len(key))))
}