MCPcopy Create free account
hub / github.com/dop251/goja / getOwnPropStr

Method getOwnPropStr

object_template.go:107–117  ·  view source on GitHub ↗
(p unistring.String)

Source from the content-addressed store, hash-verified

105}
106
107func (o *templatedObject) getOwnPropStr(p unistring.String) Value {
108 if v, exists := o.values[p]; exists {
109 return v
110 }
111 if f := o.tmpl.props[p]; f != nil {
112 v := f(o.val.runtime)
113 o.values[p] = v
114 return v
115 }
116 return nil
117}
118
119func (o *templatedObject) materialiseSymbols() {
120 if o.symValues == nil {

Callers 5

getStrMethod · 0.95
setOwnStrMethod · 0.95
setForeignStrMethod · 0.95
defineOwnPropertyStrMethod · 0.95
deleteStrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected