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

Function cleanupModuleBuilderHandle

module_bridge.go:17–22  ·  view source on GitHub ↗
(ctx *Context, builderID C.int32_t)

Source from the content-addressed store, hash-verified

15var moduleBuilderIDForceParseFailure atomic.Bool
16
17func cleanupModuleBuilderHandle(ctx *Context, builderID C.int32_t) {
18 if ctx == nil || ctx.handleStore == nil {
19 return
20 }
21 ctx.handleStore.Delete(int32(builderID))
22}
23
24// getContextAndModuleBuilder retrieves context and ModuleBuilder from module private value.
25func getContextAndModuleBuilder(ctx *C.JSContext, m *C.JSModuleDef) (*Context, *ModuleBuilder, C.int32_t, error) {

Callers 2

goModuleInitProxyFunction · 0.85

Calls 1

DeleteMethod · 0.45

Tested by

no test coverage detected