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

Method Build

module.go:75–77  ·  view source on GitHub ↗

Build creates and registers the JavaScript module in the given context The module will be available for import in JavaScript code ValueSpec entries are captured by shallow snapshot. Do not mutate pointer-based ValueSpec implementations after Build, or module initialization may observe changes. Do no

(ctx *Context)

Source from the content-addressed store, hash-verified

73// ValueSpec implementations after Build, or module initialization may observe changes.
74// Do not modify the state of passed spec objects after Build.
75func (mb *ModuleBuilder) Build(ctx *Context) error {
76 return createModule(ctx, mb)
77}
78
79// =============================================================================
80// MODULE CREATION IMPLEMENTATION

Calls 1

createModuleFunction · 0.85