示例#1
0
// 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
// 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()
}