func (e *Engine) NewExternal(value interface{}) *External { if value == nil { panic("value is nil") } external := &External{ data: value, } external.Value = newValue(e, C.V8_NewExternal( e.self, unsafe.Pointer(&(external.data)), )) external.setOwner(external) return external }
func (engine_ *Engine) NewExternal(value interface{}) *External { if value == nil { panic("value is nil") } external_ := &External{ data: value, } external_.Value = NewValue(engine_, C.V8_NewExternal( engine_.self, unsafe.Pointer(&(external_.data)), )) //TODO:: //external.setOwner(external) return external_ }