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

Function materializeValueSpecSafely

value_spec.go:19–27  ·  view source on GitHub ↗
(ctx *Context, spec ValueSpec)

Source from the content-addressed store, hash-verified

17}
18
19func materializeValueSpecSafely(ctx *Context, spec ValueSpec) (value *Value, err error) {
20 defer func() {
21 if recovered := recover(); recovered != nil {
22 err = fmt.Errorf("panic during materialize: %v", recovered)
23 }
24 }()
25
26 return spec.Materialize(ctx)
27}
28
29// MarshalSpec materializes a value via Context.Marshal.
30type MarshalSpec struct {

Callers 3

createClassFunction · 0.85
goClassConstructorProxyFunction · 0.85
goModuleInitProxyFunction · 0.85

Calls 1

MaterializeMethod · 0.65

Tested by

no test coverage detected