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

Function unregisterContext

bridge_mapping.go:25–27  ·  view source on GitHub ↗

unregisterContext removes mapping when Context is closed (internal use).

(cCtx *C.JSContext)

Source from the content-addressed store, hash-verified

23
24// unregisterContext removes mapping when Context is closed (internal use).
25func unregisterContext(cCtx *C.JSContext) {
26 contextMapping.Delete(cCtx)
27}
28
29// getContextFromJS gets Go Context from C JSContext (internal use).
30func getContextFromJS(cCtx *C.JSContext) *Context {

Calls 1

DeleteMethod · 0.45