MCPcopy Create free account
hub / github.com/coder/guts / Modifier

Method Modifier

bindings/bindings.go:313–325  ·  view source on GitHub ↗
(name Modifier)

Source from the content-addressed store, hash-verified

311}
312
313func (b *Bindings) Modifier(name Modifier) (*goja.Object, error) {
314 modifier, err := b.f("modifier")
315 if err != nil {
316 return nil, err
317 }
318
319 res, err := modifier(goja.Undefined(), b.vm.ToValue(name))
320 if err != nil {
321 panic(err)
322 }
323
324 return res.ToObject(b.vm), nil
325}
326
327func (b *Bindings) Array(arrType ExpressionType) (*goja.Object, error) {
328 array, err := b.f("arrayType")

Callers

nothing calls this directly

Calls 2

fMethod · 0.95
modifierFunction · 0.85

Tested by

no test coverage detected