コード例 #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()
}