Пример #1
0
func (o *Object) HasRealNamedProperty(key string) bool {
	keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	return C.V8_Object_HasRealNamedProperty(o.self, (*C.char)(keyPtr)) == 1
}
Пример #2
0
func (object_ *Object) HasRealNamedProperty(key string) bool {
	//keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	keyPtr := StringToPointer(key)
	return C.V8_Object_HasRealNamedProperty(object_.self, (*C.char)(keyPtr), C.int(len(key))) == 1
}