예제 #1
0
파일: v8_object.go 프로젝트: kingland/go-v8
// Get the prototype object.  This does not skip objects marked to
// be skipped by __proto__ and it does not consult the security
// handler.
//
func (o *Object) GetPrototype() *Object {
	return newValue(o.engine, C.V8_Object_GetPrototype(o.self)).ToObject()
}
예제 #2
0
파일: v8_value.go 프로젝트: kingland/gnode
// 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_ *Object) GetPrototype() *Object {
	return NewValue(object_.engine, C.V8_Object_GetPrototype(object_.self)).ToObject()
}