MCPcopy Create free account
hub / github.com/buke/quickjs-go / loadFunctionFromHandleID

Method loadFunctionFromHandleID

context.go:795–801  ·  view source on GitHub ↗

getFunction gets function from HandleStore (internal use)

(id int32)

Source from the content-addressed store, hash-verified

793
794// getFunction gets function from HandleStore (internal use)
795func (ctx *Context) loadFunctionFromHandleID(id int32) interface{} {
796 if ctx == nil || ctx.handleStore == nil || id <= 0 {
797 return nil
798 }
799 fn, _ := ctx.handleStore.Load(id)
800 return fn
801}
802
803// SetInterruptHandler sets a interrupt handler.
804//

Callers 2

getContextAndObjectFunction · 0.80

Calls 1

LoadMethod · 0.80

Tested by 1